org.opennms.web.map.db.datasources
Class ServerDataSource

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

public class ServerDataSource
extends Object
implements DataSourceInterface

Author:
Antonio Russo, DJ Gregor

Constructor Summary
ServerDataSource(Map params)
           
 
Method Summary
protected  void finalize()
           
 double getAvailability(Object id)
          Gets the availability of the element with id in input using params in input
 String getSeverity(Object id)
          Gets the severity of the element with id in input using params in input
 String getStatus(Object id)
          Gets the status of the element with id in input using params in input
 void init()
          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(Map params)
Method Detail

init

public void init()
Before invoking get() method, this method must be invoked.


finalize

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

getSeverity

public String getSeverity(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
Returns:
the severity of velem, -1 if no severity is found for velem

getStatus

public String getStatus(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(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 © 2009. All Rights Reserved.