org.opennms.web.map.datasources
Class ServerDataSource

java.lang.Object
  extended by org.opennms.web.map.datasources.ServerDataSource
All Implemented Interfaces:
DataSourceInterface

public class ServerDataSource
extends java.lang.Object
implements DataSourceInterface


Constructor Summary
ServerDataSource()
           
 
Method Summary
protected  void finalize()
           
 double getAvailability(java.lang.Object id)
          Gets the availability of the element with id in input using params in input
 int getSeverity(java.lang.Object id)
          Gets the severity of the element with id in input using params in input
 int getStatus(java.lang.Object id)
          Gets the status of the element with id in input using params in input
 void init(java.util.Map params)
          Before invoking get() method, this method must be invoked.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerDataSource

public ServerDataSource()
Method Detail

init

public void init(java.util.Map params)
Before invoking get() method, this method must be invoked.

Specified by:
init in interface DataSourceInterface

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getSeverity

public int getSeverity(java.lang.Object id)
Description copied from interface: DataSourceInterface
Gets the severity of the element with id in input using params in input

Specified by:
getSeverity in interface DataSourceInterface
Parameters:
params - is a HashMap that must contain entries for "url","driver","user","password","Critical","Major","Minor","Warning","Normal","Cleared","Indeterminate"
Returns:
the severity of velem, -1 if no severity is found for velem

getStatus

public int getStatus(java.lang.Object id)
Description copied from interface: DataSourceInterface
Gets the status of the element with id in input using params in input

Specified by:
getStatus in interface DataSourceInterface
Returns:
the status of velem, -1 if no status is found for velem

getAvailability

public double getAvailability(java.lang.Object id)
Description copied from interface: DataSourceInterface
Gets the availability of the element with id in input using params in input

Specified by:
getAvailability in interface DataSourceInterface
Returns:
the availability of velem, -1 if no availability is found for velem


Copyright © 2007. All Rights Reserved.