|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PollerConfig
PollerConfig interface.
| Method Summary | |
|---|---|
void |
addMonitor(String svcName,
String className)
addMonitor |
void |
addPackage(Package pkg)
addPackage |
Enumeration<Package> |
enumeratePackage()
enumeratePackage |
List<String> |
getAllPackageMatches(String ipAddr)
getAllPackageMatches |
PollerConfiguration |
getConfiguration()
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()
getNextOutageIdSql |
Package |
getPackage(String pkgName)
getPackage |
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)
getServiceMonitor |
Collection<ServiceMonitorLocator> |
getServiceMonitorLocators(DistributionContext context)
getServiceMonitorLocators |
Map<String,ServiceMonitor> |
getServiceMonitors()
getServiceMonitors |
ServiceSelector |
getServiceSelectorForPackage(Package pkg)
getServiceSelectorForPackage |
int |
getStep(Package pkg)
Retrieves configured RRD step size. |
int |
getThreads()
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()
releaseAllServiceMonitors |
void |
save()
save |
void |
saveResponseTimeData(String locationMonitor,
OnmsMonitoredService monSvc,
double responseTime,
Package pkg)
saveResponseTimeData |
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()
update |
| Method Detail |
|---|
boolean getXmlrpc()
String getCriticalService()
boolean pollAllIfNoCriticalServiceDefined()
boolean nodeOutageProcessingEnabled()
boolean serviceUnresponsiveEnabled()
boolean pathOutageEnabled()
void rebuildPackageIpListMap()
List<String> getIpList(Package pkg)
pkg - a Package object.
List object.
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)
getAllPackageMatches
ipAddr - a String object.
List object.String getNextOutageIdSql()
getNextOutageIdSql
String object.Enumeration<Package> enumeratePackage()
enumeratePackage
Enumeration object.Package getPackage(String pkgName)
getPackage
pkgName - a String object.
Package object.ServiceSelector getServiceSelectorForPackage(Package pkg)
getServiceSelectorForPackage
pkg - a Package object.
ServiceSelector object.int getThreads()
getThreads
Map<String,ServiceMonitor> getServiceMonitors()
getServiceMonitors
Map object.void releaseAllServiceMonitors()
releaseAllServiceMonitors
ServiceMonitor getServiceMonitor(String svcName)
getServiceMonitor
svcName - a String object.
ServiceMonitor object.
void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
save
org.exolab.castor.xml.MarshalException - if any.
IOException - if any.
org.exolab.castor.xml.ValidationException - if any.void addPackage(Package pkg)
addPackage
pkg - a Package object.
void addMonitor(String svcName,
String className)
addMonitor
svcName - a String object.className - a String object.PollerConfiguration getConfiguration()
getConfiguration
PollerConfiguration object.
void saveResponseTimeData(String locationMonitor,
OnmsMonitoredService monSvc,
double responseTime,
Package pkg)
saveResponseTimeData
locationMonitor - a String object.monSvc - a OnmsMonitoredService object.responseTime - a double.pkg - a Package object.Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
getServiceMonitorLocators
context - a DistributionContext object.
Collection object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||