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.Serializable
Top-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 void
addMonitor(java.lang.String service, java.lang.String className)
void
addMonitor(Monitor monitor)
void
addPackage(Package pack)
boolean
equals(java.lang.Object o)
java.net.InetAddress
getDefaultCriticalPathIp()
int
getDefaultCriticalPathRetries()
java.lang.Integer
getDefaultCriticalPathTimeout()
java.util.List<Monitor>
getMonitors()
java.lang.String
getNextOutageId()
SQL query for getting the next outage ID.NodeOutage
getNodeOutage()
Configuration of node-outage functionalityPackage
getPackage(java.lang.String packageName)
java.util.List<Package>
getPackages()
java.lang.String
getPathOutageEnabled()
Flag which indicates if the optional path outage feature is enabledPollerConfiguration
getPollerConfigurationForPackages(java.util.List<java.lang.String> pollingPackageNames)
java.lang.String
getServiceUnresponsiveEnabled()
Enable/disable serviceUnresponsive behaviorjava.lang.Integer
getThreads()
The maximum number of threads used for polling.int
hashCode()
boolean
removeMonitor(Monitor monitor)
boolean
removePackage(Package pack)
void
setDefaultCriticalPathIp(java.net.InetAddress ip)
void
setDefaultCriticalPathRetries(java.lang.Integer retries)
void
setDefaultCriticalPathTimeout(java.lang.Integer timeout)
void
setMonitors(java.util.List<Monitor> monitors)
void
setNextOutageId(java.lang.String nextOutageId)
void
setNodeOutage(NodeOutage nodeOutage)
void
setPackages(java.util.List<Package> packages)
void
setPathOutageEnabled(java.lang.String pathOutageEnabled)
void
setServiceUnresponsiveEnabled(java.lang.String serviceUnresponsiveEnabled)
void
setThreads(java.lang.Integer threads)
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-