|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PollerConfig
| Method Summary | |
|---|---|
void |
addMonitor(String svcName,
String className)
|
void |
addPackage(org.opennms.netmgt.config.poller.Package pkg)
|
Enumeration<org.opennms.netmgt.config.poller.Package> |
enumeratePackage()
|
List<String> |
getAllPackageMatches(String ipAddr)
|
org.opennms.netmgt.config.poller.PollerConfiguration |
getConfiguration()
|
String |
getCriticalService()
This method returns the configured critical service name. |
org.opennms.netmgt.config.poller.Package |
getFirstLocalPackageMatch(String ipaddr)
Returns the first package that the ip belongs to that is not marked as remote, null if none. |
org.opennms.netmgt.config.poller.Package |
getFirstPackageMatch(String ipaddr)
Returns the first package that the ip belongs to, null if none. |
List<String> |
getIpList(org.opennms.netmgt.config.poller.Package pkg)
Determine the list of IPs the filter rule for this package allows |
String |
getNextOutageIdSql()
|
org.opennms.netmgt.config.poller.Package |
getPackage(String pkgName)
|
List<String> |
getRRAList(org.opennms.netmgt.config.poller.Package pkg)
Retrieves configured list of RoundRobin Archive statements. |
org.opennms.netmgt.config.poller.Service |
getServiceInPackage(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
Return the Service object with the given name from the give Package. |
ServiceMonitor |
getServiceMonitor(String svcName)
|
Collection<ServiceMonitorLocator> |
getServiceMonitorLocators(DistributionContext context)
|
Map<String,ServiceMonitor> |
getServiceMonitors()
|
org.opennms.netmgt.model.ServiceSelector |
getServiceSelectorForPackage(org.opennms.netmgt.config.poller.Package pkg)
|
int |
getStep(org.opennms.netmgt.config.poller.Package pkg)
Retrieves configured RRD step size. |
int |
getThreads()
|
boolean |
getXmlrpc()
This method returns the boolean flag xmlrpc to indicate if notification to external xmlrpc server is needed. |
boolean |
interfaceInPackage(String iface,
org.opennms.netmgt.config.poller.Package pkg)
This method is used to determine if the named interface is included in the passed package definition. |
boolean |
isPolled(String ipaddr)
Returns true if the ip is part of at least one package. |
boolean |
isPolled(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
Returns true if this package has the service enabled and if there is a monitor for this service. |
boolean |
isPolled(String ipaddr,
String svcName)
Returns true if the ip is part of at least one package and if this package has the service enabled and if there is a monitor for this service. |
boolean |
isPolledLocally(String ipaddr)
Returns true if the ip is part of at least one package that is NOT marked as remote Note: Evaluation of the interface against a package filter will only work if the IP is already in the database. |
boolean |
isPolledLocally(String ipaddr,
String svcName)
Returns true if the ip is part of at least one package and if this package has the service enabled and if there is a monitor for this service and the package is NOT marked as remote Note: Evaluation of the interface against a package filter will only work if the IP is already in the database. |
boolean |
nodeOutageProcessingEnabled()
Returns true if node outage processing is enabled. |
boolean |
pathOutageEnabled()
Returns true if the path outage feature is enabled. |
boolean |
pollAllIfNoCriticalServiceDefined()
This method returns the configured value of the 'pollAllIfNoCriticalServiceDefined' flag. |
void |
rebuildPackageIpListMap()
This method is used to rebuild the package against ip list mapping when needed. |
void |
releaseAllServiceMonitors()
|
void |
save()
|
void |
saveResponseTimeData(String locationMonitor,
org.opennms.netmgt.model.OnmsMonitoredService monSvc,
double responseTime,
org.opennms.netmgt.config.poller.Package pkg)
|
boolean |
serviceInPackageAndEnabled(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
Returns true if the service is part of the package and the status of the service is set to "on". |
boolean |
serviceMonitored(String svcName)
Returns true if the service has a monitor configured, false otherwise. |
boolean |
serviceUnresponsiveEnabled()
Returns true if serviceUnresponsive behavior is enabled. |
void |
update()
|
| Method Detail |
|---|
boolean getXmlrpc()
String getCriticalService()
boolean pollAllIfNoCriticalServiceDefined()
boolean nodeOutageProcessingEnabled()
boolean serviceUnresponsiveEnabled()
boolean pathOutageEnabled()
void rebuildPackageIpListMap()
List<String> getIpList(org.opennms.netmgt.config.poller.Package pkg)
pkg -
boolean interfaceInPackage(String iface,
org.opennms.netmgt.config.poller.Package pkg)
iface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.
boolean serviceInPackageAndEnabled(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
svcName - The service name to lookup.pkg - The package to lookup up service.
org.opennms.netmgt.config.poller.Service getServiceInPackage(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
svcName - the service name to lookuppkg - the packe to lookup the the service in
boolean serviceMonitored(String svcName)
svcName - The service name to lookup.org.opennms.netmgt.config.poller.Package getFirstPackageMatch(String ipaddr)
ipaddr - the interface to check
org.opennms.netmgt.config.poller.Package getFirstLocalPackageMatch(String ipaddr)
ipaddr - the interface to check
boolean isPolled(String ipaddr)
ipaddr - the interface to check
boolean isPolledLocally(String ipaddr)
ipaddr - the interface to check
boolean isPolled(String svcName,
org.opennms.netmgt.config.poller.Package pkg)
svcName - the service to checkpkg - the package to check
boolean isPolled(String ipaddr,
String svcName)
ipaddr - the interface to checksvcName - the service to check
boolean isPolledLocally(String ipaddr,
String svcName)
ipaddr - the interface to checksvcName - the service to check
int getStep(org.opennms.netmgt.config.poller.Package pkg)
pkg - Name of the data collection
List<String> getRRAList(org.opennms.netmgt.config.poller.Package pkg)
pkg - Name of the data collection
List<String> getAllPackageMatches(String ipAddr)
String getNextOutageIdSql()
Enumeration<org.opennms.netmgt.config.poller.Package> enumeratePackage()
org.opennms.netmgt.config.poller.Package getPackage(String pkgName)
org.opennms.netmgt.model.ServiceSelector getServiceSelectorForPackage(org.opennms.netmgt.config.poller.Package pkg)
int getThreads()
Map<String,ServiceMonitor> getServiceMonitors()
void releaseAllServiceMonitors()
ServiceMonitor getServiceMonitor(String svcName)
void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationExceptionvoid addPackage(org.opennms.netmgt.config.poller.Package pkg)
void addMonitor(String svcName,
String className)
org.opennms.netmgt.config.poller.PollerConfiguration getConfiguration()
void saveResponseTimeData(String locationMonitor,
org.opennms.netmgt.model.OnmsMonitoredService monSvc,
double responseTime,
org.opennms.netmgt.config.poller.Package pkg)
Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||