Package org.opennms.netmgt.config.poller
Class PollerConfiguration
- java.lang.Object
-
- org.opennms.netmgt.config.poller.PollerConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class PollerConfiguration extends java.lang.Object implements java.io.SerializableTop-level element for the poller-configuration.xml configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PollerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMonitor(java.lang.String service, java.lang.String className)voidaddMonitor(Monitor monitor)voidaddPackage(Package pack)booleanequals(java.lang.Object o)java.net.InetAddressgetDefaultCriticalPathIp()intgetDefaultCriticalPathRetries()java.lang.IntegergetDefaultCriticalPathTimeout()java.util.List<Monitor>getMonitors()java.lang.StringgetNextOutageId()SQL query for getting the next outage ID.NodeOutagegetNodeOutage()Configuration of node-outage functionalityPackagegetPackage(java.lang.String packageName)java.util.List<Package>getPackages()java.lang.StringgetPathOutageEnabled()Flag which indicates if the optional path outage feature is enabledPollerConfigurationgetPollerConfigurationForPackages(java.util.List<java.lang.String> pollingPackageNames)java.lang.StringgetServiceUnresponsiveEnabled()Enable/disable serviceUnresponsive behaviorjava.lang.IntegergetThreads()The maximum number of threads used for polling.inthashCode()booleanremoveMonitor(Monitor monitor)booleanremovePackage(Package pack)voidsetDefaultCriticalPathIp(java.net.InetAddress ip)voidsetDefaultCriticalPathRetries(java.lang.Integer retries)voidsetDefaultCriticalPathTimeout(java.lang.Integer timeout)voidsetMonitors(java.util.List<Monitor> monitors)voidsetNextOutageId(java.lang.String nextOutageId)voidsetNodeOutage(NodeOutage nodeOutage)voidsetPackages(java.util.List<Package> packages)voidsetPathOutageEnabled(java.lang.String pathOutageEnabled)voidsetServiceUnresponsiveEnabled(java.lang.String serviceUnresponsiveEnabled)voidsetThreads(java.lang.Integer threads)java.lang.StringtoString()
-
-
-
Method Detail
-
getThreads
public java.lang.Integer getThreads()
The maximum number of threads used for polling.
-
setThreads
public void setThreads(java.lang.Integer threads)
-
getNextOutageId
public java.lang.String getNextOutageId()
SQL query for getting the next outage ID.
-
setNextOutageId
public void setNextOutageId(java.lang.String nextOutageId)
-
getServiceUnresponsiveEnabled
public java.lang.String getServiceUnresponsiveEnabled()
Enable/disable serviceUnresponsive behavior
-
setServiceUnresponsiveEnabled
public void setServiceUnresponsiveEnabled(java.lang.String serviceUnresponsiveEnabled)
-
getPathOutageEnabled
public java.lang.String getPathOutageEnabled()
Flag which indicates if the optional path outage feature is enabled
-
setPathOutageEnabled
public void setPathOutageEnabled(java.lang.String pathOutageEnabled)
-
getNodeOutage
public NodeOutage getNodeOutage()
Configuration of node-outage functionality
-
setNodeOutage
public void setNodeOutage(NodeOutage nodeOutage)
-
getPackages
public java.util.List<Package> getPackages()
-
setPackages
public void setPackages(java.util.List<Package> packages)
-
addPackage
public void addPackage(Package pack) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
removePackage
public boolean removePackage(Package pack)
-
getPackage
public Package getPackage(java.lang.String packageName)
-
getMonitors
public java.util.List<Monitor> getMonitors()
-
setMonitors
public void setMonitors(java.util.List<Monitor> monitors)
-
addMonitor
public void addMonitor(Monitor monitor) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
addMonitor
public void addMonitor(java.lang.String service, java.lang.String className)
-
removeMonitor
public boolean removeMonitor(Monitor monitor)
-
getPollerConfigurationForPackages
public PollerConfiguration getPollerConfigurationForPackages(java.util.List<java.lang.String> pollingPackageNames)
-
getDefaultCriticalPathIp
public java.net.InetAddress getDefaultCriticalPathIp()
-
setDefaultCriticalPathIp
public void setDefaultCriticalPathIp(java.net.InetAddress ip)
-
getDefaultCriticalPathTimeout
public java.lang.Integer getDefaultCriticalPathTimeout()
-
setDefaultCriticalPathTimeout
public void setDefaultCriticalPathTimeout(java.lang.Integer timeout)
-
getDefaultCriticalPathRetries
public int getDefaultCriticalPathRetries()
-
setDefaultCriticalPathRetries
public void setDefaultCriticalPathRetries(java.lang.Integer retries)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-