public interface PollerConfig extends PathOutageConfig
PollerConfig interface.
| Modifier and Type | Method and Description | 
|---|---|
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<InetAddress> | 
getIpList(Package pkg)
Determine the list of IPs the filter rule for this package allows 
 | 
String | 
getNextOutageIdSql()
Deprecated. 
 
We should be using DAOs that autoincrement. 
 | 
Package | 
getPackage(String pkgName)
getPackage 
 | 
Lock | 
getReadLock()
getReadLock 
 | 
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 
 | 
Set<String> | 
getServiceMonitorNames()  | 
ServiceMonitorRegistry | 
getServiceMonitorRegistry()  | 
ServiceSelector | 
getServiceSelectorForPackage(Package pkg)
getServiceSelectorForPackage 
 | 
int | 
getStep(Package pkg)
Retrieves configured RRD step size. 
 | 
int | 
getThreads()
getThreads 
 | 
Lock | 
getWriteLock()
getWriteLock 
 | 
boolean | 
isInterfaceInPackage(String iface,
                    Package pkg)
This method is used to determine if the named interface is included in
 the passed package definition. 
 | 
boolean | 
isNodeOutageProcessingEnabled()
Returns true if node outage processing is enabled. 
 | 
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 | 
isServiceInPackageAndEnabled(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 | 
isServiceMonitored(String svcName)
Returns true if the service has a monitor configured, false otherwise. 
 | 
boolean | 
isServiceUnresponsiveEnabled()
Returns true if serviceUnresponsive behavior is enabled. 
 | 
Iterable<Parameter> | 
parameters(Service svc)  | 
void | 
rebuildPackageIpListMap()
This method is used to rebuild the package against ip list mapping when
 needed. 
 | 
void | 
save()
save 
 | 
boolean | 
shouldPollAllIfNoCriticalServiceDefined()
This method returns the configured value of the
 'pollAllIfNoCriticalServiceDefined' flag. 
 | 
void | 
update()
update 
 | 
getDefaultCriticalPathIp, getDefaultCriticalPathRetries, getDefaultCriticalPathTimeout, isPathOutageEnabledString getCriticalService()
boolean shouldPollAllIfNoCriticalServiceDefined()
boolean isNodeOutageProcessingEnabled()
boolean isServiceUnresponsiveEnabled()
void rebuildPackageIpListMap()
List<InetAddress> getIpList(Package pkg)
boolean isInterfaceInPackage(String iface, Package pkg)
iface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.boolean isServiceInPackageAndEnabled(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 inboolean isServiceMonitored(String svcName)
svcName - The service name to lookup.Package getFirstPackageMatch(String ipaddr)
ipaddr - the interface to checkPackage getFirstLocalPackageMatch(String ipaddr)
ipaddr - the interface to checkboolean isPolled(String ipaddr)
ipaddr - the interface to checkboolean isPolledLocally(String ipaddr)
ipaddr - the interface to checkboolean isPolled(String svcName, Package pkg)
svcName - the service to checkpkg - the package to checkboolean isPolled(String ipaddr, String svcName)
ipaddr - the interface to checksvcName - the service to checkboolean isPolledLocally(String ipaddr, String svcName)
ipaddr - the interface to checksvcName - the service to checkint getStep(Package pkg)
pkg - Name of the data collectionList<String> getRRAList(Package pkg)
pkg - Name of the data collectionString getNextOutageIdSql()
getNextOutageIdSql
String object.Enumeration<Package> enumeratePackage()
enumeratePackage
Enumeration object.ServiceSelector getServiceSelectorForPackage(Package pkg)
getServiceSelectorForPackage
pkg - a Package object.ServiceSelector object.int getThreads()
getThreads
ServiceMonitor getServiceMonitor(String svcName)
getServiceMonitor
svcName - a String object.ServiceMonitor object.void update()
     throws IOException
update
IOException - if any.void save() throws IOException
save
IOException - if any.PollerConfiguration getConfiguration()
getConfiguration
PollerConfiguration object.Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
getServiceMonitorLocators
context - a DistributionContext object.Collection object.ServiceMonitorRegistry getServiceMonitorRegistry()
Lock getReadLock()
getReadLock
Lock getWriteLock()
getWriteLock
Copyright © 2020. All rights reserved.