|
|||||||||
| 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(Package pkg)
|
Enumeration<Package> |
enumeratePackage()
|
List<String> |
getAllPackageMatches(String ipAddr)
|
PollerConfiguration |
getConfiguration()
|
String |
getCriticalService()
This method returns the configured critical service name. |
Package |
getFirstLocalPackageMatch(String ipaddr)
Returns the first package that the ip belongs to that is not marked as remote, null if none. |
Package |
getFirstPackageMatch(String ipaddr)
Returns the first package that the ip belongs to, null if none. |
List<String> |
getIpList(Package pkg)
Determine the list of IPs the filter rule for this package allows |
String |
getNextOutageIdSql()
|
Package |
getPackage(String pkgName)
|
List<String> |
getRRAList(Package pkg)
Retrieves configured list of RoundRobin Archive statements. |
Service |
getServiceInPackage(String svcName,
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()
|
ServiceSelector |
getServiceSelectorForPackage(Package pkg)
|
int |
getStep(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,
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,
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,
OnmsMonitoredService monSvc,
double responseTime,
Package pkg)
|
boolean |
serviceInPackageAndEnabled(String svcName,
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(Package pkg)
pkg -
boolean interfaceInPackage(String iface,
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,
Package pkg)
svcName - The service name to lookup.pkg - The package to lookup up service.
Service getServiceInPackage(String svcName,
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.Package getFirstPackageMatch(String ipaddr)
ipaddr - the interface to check
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,
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(Package pkg)
pkg - Name of the data collection
List<String> getRRAList(Package pkg)
pkg - Name of the data collection
List<String> getAllPackageMatches(String ipAddr)
String getNextOutageIdSql()
Enumeration<Package> enumeratePackage()
Package getPackage(String pkgName)
ServiceSelector getServiceSelectorForPackage(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(Package pkg)
void addMonitor(String svcName,
String className)
PollerConfiguration getConfiguration()
void saveResponseTimeData(String locationMonitor,
OnmsMonitoredService monSvc,
double responseTime,
Package pkg)
Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||