Class 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 Detail

      • PollerConfiguration

        public PollerConfiguration()
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object