org.opennms.netmgt.config.poller
Class PollerConfiguration

java.lang.Object
  extended by 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.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
PollerConfiguration()
           
 
Method Summary
 void addMonitor(int index, Monitor vMonitor)
          Method addMonitor
 void addMonitor(Monitor vMonitor)
          Method addMonitor
 void addPackage(int index, Package vPackage)
          Method addPackage
 void addPackage(Package vPackage)
          Method addPackage
 void clearMonitor()
          Method clearMonitor
 void clearPackage()
          Method clearPackage
 void deleteThreads()
          Method deleteThreads
 java.util.Enumeration enumerateMonitor()
          Method enumerateMonitor
 java.util.Enumeration enumeratePackage()
          Method enumeratePackage
 Monitor[] getMonitor()
          Method getMonitor
 Monitor getMonitor(int index)
          Method getMonitor
 java.util.ArrayList getMonitorCollection()
          Method getMonitorCollection Returns a reference to 'monitor'.
 int getMonitorCount()
          Method getMonitorCount
 java.lang.String getNextOutageId()
          Returns the value of field 'nextOutageId'.
 NodeOutage getNodeOutage()
          Returns the value of field 'nodeOutage'.
 Package[] getPackage()
          Method getPackage
 Package getPackage(int index)
          Method getPackage
 java.util.ArrayList getPackageCollection()
          Method getPackageCollection Returns a reference to '_package'.
 int getPackageCount()
          Method getPackageCount
 java.lang.String getPathOutageEnabled()
          Returns the value of field 'pathOutageEnabled'.
 java.lang.String getServiceUnresponsiveEnabled()
          Returns the value of field 'serviceUnresponsiveEnabled'.
 int getThreads()
          Returns the value of field 'threads'.
 java.lang.String getXmlrpc()
          Returns the value of field 'xmlrpc'.
 boolean hasThreads()
          Method hasThreads
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeMonitor(Monitor vMonitor)
          Method removeMonitor
 boolean removePackage(Package vPackage)
          Method removePackage
 void setMonitor(java.util.ArrayList monitorCollection)
          Method setMonitor Sets the value of 'monitor' by copying the given ArrayList.
 void setMonitor(int index, Monitor vMonitor)
          Method setMonitor
 void setMonitor(Monitor[] monitorArray)
          Method setMonitor
 void setMonitorCollection(java.util.ArrayList monitorCollection)
          Method setMonitorCollection Sets the value of 'monitor' by setting it to the given ArrayList.
 void setNextOutageId(java.lang.String nextOutageId)
          Sets the value of field 'nextOutageId'.
 void setNodeOutage(NodeOutage nodeOutage)
          Sets the value of field 'nodeOutage'.
 void setPackage(java.util.ArrayList _packageCollection)
          Method setPackage Sets the value of '_package' by copying the given ArrayList.
 void setPackage(int index, Package vPackage)
          Method setPackage
 void setPackage(Package[] _packageArray)
          Method setPackage
 void setPackageCollection(java.util.ArrayList _packageCollection)
          Method setPackageCollection Sets the value of '_package' by setting it to the given ArrayList.
 void setPathOutageEnabled(java.lang.String pathOutageEnabled)
          Sets the value of field 'pathOutageEnabled'.
 void setServiceUnresponsiveEnabled(java.lang.String serviceUnresponsiveEnabled)
          Sets the value of field 'serviceUnresponsiveEnabled'.
 void setThreads(int threads)
          Sets the value of field 'threads'.
 void setXmlrpc(java.lang.String xmlrpc)
          Sets the value of field 'xmlrpc'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollerConfiguration

public PollerConfiguration()
Method Detail

addMonitor

public void addMonitor(Monitor vMonitor)
                throws java.lang.IndexOutOfBoundsException
Method addMonitor

Parameters:
vMonitor -
Throws:
java.lang.IndexOutOfBoundsException

addMonitor

public void addMonitor(int index,
                       Monitor vMonitor)
                throws java.lang.IndexOutOfBoundsException
Method addMonitor

Parameters:
index -
vMonitor -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

Parameters:
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

clearMonitor

public void clearMonitor()
Method clearMonitor


clearPackage

public void clearPackage()
Method clearPackage


deleteThreads

public void deleteThreads()
Method deleteThreads


enumerateMonitor

public java.util.Enumeration enumerateMonitor()
Method enumerateMonitor

Returns:
Enumeration

enumeratePackage

public java.util.Enumeration enumeratePackage()
Method enumeratePackage

Returns:
Enumeration

getMonitor

public Monitor getMonitor(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getMonitor

Parameters:
index -
Returns:
Monitor
Throws:
java.lang.IndexOutOfBoundsException

getMonitor

public Monitor[] getMonitor()
Method getMonitor

Returns:
Monitor

getMonitorCollection

public java.util.ArrayList getMonitorCollection()
Method getMonitorCollection Returns a reference to 'monitor'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getMonitorCount

public int getMonitorCount()
Method getMonitorCount

Returns:
int

getNextOutageId

public java.lang.String getNextOutageId()
Returns the value of field 'nextOutageId'. The field 'nextOutageId' has the following description: SQL query for getting the next outage ID.

Returns:
String

getNodeOutage

public NodeOutage getNodeOutage()
Returns the value of field 'nodeOutage'. The field 'nodeOutage' has the following description: Configuration of node-outage functionality

Returns:
NodeOutage

getPackage

public Package getPackage(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getPackage

Parameters:
index -
Returns:
Package
Throws:
java.lang.IndexOutOfBoundsException

getPackage

public Package[] getPackage()
Method getPackage

Returns:
Package

getPackageCollection

public java.util.ArrayList getPackageCollection()
Method getPackageCollection Returns a reference to '_package'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getPackageCount

public int getPackageCount()
Method getPackageCount

Returns:
int

getPathOutageEnabled

public java.lang.String getPathOutageEnabled()
Returns the value of field 'pathOutageEnabled'. The field 'pathOutageEnabled' has the following description: Flag which indicates if the optional path outage feature is enabled

Returns:
String

getServiceUnresponsiveEnabled

public java.lang.String getServiceUnresponsiveEnabled()
Returns the value of field 'serviceUnresponsiveEnabled'. The field 'serviceUnresponsiveEnabled' has the following description: Enable/disable serviceUnresponsive behavior

Returns:
String

getThreads

public int getThreads()
Returns the value of field 'threads'. The field 'threads' has the following description: The maximum number of threads used for polling.

Returns:
int

getXmlrpc

public java.lang.String getXmlrpc()
Returns the value of field 'xmlrpc'. The field 'xmlrpc' has the following description: Flag which indicates if an external XMLRPC server has to be notified with any event process errors

Returns:
String

hasThreads

public boolean hasThreads()
Method hasThreads

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeMonitor

public boolean removeMonitor(Monitor vMonitor)
Method removeMonitor

Parameters:
vMonitor -
Returns:
boolean

removePackage

public boolean removePackage(Package vPackage)
Method removePackage

Parameters:
vPackage -
Returns:
boolean

setMonitor

public void setMonitor(int index,
                       Monitor vMonitor)
                throws java.lang.IndexOutOfBoundsException
Method setMonitor

Parameters:
index -
vMonitor -
Throws:
java.lang.IndexOutOfBoundsException

setMonitor

public void setMonitor(Monitor[] monitorArray)
Method setMonitor

Parameters:
monitorArray -

setMonitor

public void setMonitor(java.util.ArrayList monitorCollection)
Method setMonitor Sets the value of 'monitor' by copying the given ArrayList.

Parameters:
monitorCollection - the Vector to copy.

setMonitorCollection

public void setMonitorCollection(java.util.ArrayList monitorCollection)
Method setMonitorCollection Sets the value of 'monitor' by setting it to the given ArrayList. No type checking is performed.

Parameters:
monitorCollection - the ArrayList to copy.

setNextOutageId

public void setNextOutageId(java.lang.String nextOutageId)
Sets the value of field 'nextOutageId'. The field 'nextOutageId' has the following description: SQL query for getting the next outage ID.

Parameters:
nextOutageId - the value of field 'nextOutageId'.

setNodeOutage

public void setNodeOutage(NodeOutage nodeOutage)
Sets the value of field 'nodeOutage'. The field 'nodeOutage' has the following description: Configuration of node-outage functionality

Parameters:
nodeOutage - the value of field 'nodeOutage'.

setPackage

public void setPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method setPackage

Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

setPackage

public void setPackage(Package[] _packageArray)
Method setPackage

Parameters:
_packageArray -

setPackage

public void setPackage(java.util.ArrayList _packageCollection)
Method setPackage Sets the value of '_package' by copying the given ArrayList.

Parameters:
_packageCollection - the Vector to copy.

setPackageCollection

public void setPackageCollection(java.util.ArrayList _packageCollection)
Method setPackageCollection Sets the value of '_package' by setting it to the given ArrayList. No type checking is performed.

Parameters:
_packageCollection - the ArrayList to copy.

setPathOutageEnabled

public void setPathOutageEnabled(java.lang.String pathOutageEnabled)
Sets the value of field 'pathOutageEnabled'. The field 'pathOutageEnabled' has the following description: Flag which indicates if the optional path outage feature is enabled

Parameters:
pathOutageEnabled - the value of field 'pathOutageEnabled'.

setServiceUnresponsiveEnabled

public void setServiceUnresponsiveEnabled(java.lang.String serviceUnresponsiveEnabled)
Sets the value of field 'serviceUnresponsiveEnabled'. The field 'serviceUnresponsiveEnabled' has the following description: Enable/disable serviceUnresponsive behavior

Parameters:
serviceUnresponsiveEnabled - the value of field 'serviceUnresponsiveEnabled'.

setThreads

public void setThreads(int threads)
Sets the value of field 'threads'. The field 'threads' has the following description: The maximum number of threads used for polling.

Parameters:
threads - the value of field 'threads'.

setXmlrpc

public void setXmlrpc(java.lang.String xmlrpc)
Sets the value of field 'xmlrpc'. The field 'xmlrpc' has the following description: Flag which indicates if an external XMLRPC server has to be notified with any event process errors

Parameters:
xmlrpc - the value of field 'xmlrpc'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.