org.opennms.web.map.datasources
Interface DataSourceInterface

All Known Implementing Classes:
ServerDataSource

public interface DataSourceInterface

The interface DataSource provide a way to get data named like the input.

Author:
mmigliore

Method Summary
 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)
           
 

Method Detail

init

void init(java.util.Map params)

getStatus

int getStatus(java.lang.Object id)
Gets the status of the element with id in input using params in input

Parameters:
velem -
params -
Returns:
the status of velem, -1 if no status is found for velem

getSeverity

int getSeverity(java.lang.Object id)
Gets the severity of the element with id in input using params in input

Parameters:
velem -
params -
Returns:
the severity of velem, -1 if no severity is found for velem

getAvailability

double getAvailability(java.lang.Object id)
Gets the availability of the element with id in input using params in input

Parameters:
velem -
params -
Returns:
the availability of velem, -1 if no availability is found for velem


Copyright © 2007. All Rights Reserved.