org.opennms.netmgt.config.threshd
Class ThreshdConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.threshd.ThreshdConfiguration
All Implemented Interfaces:
java.io.Serializable

public class ThreshdConfiguration
extends java.lang.Object
implements java.io.Serializable

Top-level element for the threshd-configuration.xml configuration file.

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

Constructor Summary
ThreshdConfiguration()
           
 
Method Summary
 void addPackage(int index, Package vPackage)
          Method addPackage
 void addPackage(Package vPackage)
          Method addPackage
 void addThresholder(int index, Thresholder vThresholder)
          Method addThresholder
 void addThresholder(Thresholder vThresholder)
          Method addThresholder
 void clearPackage()
          Method clearPackage
 void clearThresholder()
          Method clearThresholder
 void deleteThreads()
          Method deleteThreads
 java.util.Enumeration enumeratePackage()
          Method enumeratePackage
 java.util.Enumeration enumerateThresholder()
          Method enumerateThresholder
 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
 int getThreads()
          Returns the value of field 'threads'.
 Thresholder[] getThresholder()
          Method getThresholder
 Thresholder getThresholder(int index)
          Method getThresholder
 java.util.ArrayList getThresholderCollection()
          Method getThresholderCollection Returns a reference to 'thresholder'.
 int getThresholderCount()
          Method getThresholderCount
 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 removePackage(Package vPackage)
          Method removePackage
 boolean removeThresholder(Thresholder vThresholder)
          Method removeThresholder
 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 setThreads(int threads)
          Sets the value of field 'threads'.
 void setThresholder(java.util.ArrayList thresholderCollection)
          Method setThresholder Sets the value of 'thresholder' by copying the given ArrayList.
 void setThresholder(int index, Thresholder vThresholder)
          Method setThresholder
 void setThresholder(Thresholder[] thresholderArray)
          Method setThresholder
 void setThresholderCollection(java.util.ArrayList thresholderCollection)
          Method setThresholderCollection Sets the value of 'thresholder' by setting it to the given ArrayList.
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

ThreshdConfiguration

public ThreshdConfiguration()
Method Detail

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

addThresholder

public void addThresholder(Thresholder vThresholder)
                    throws java.lang.IndexOutOfBoundsException
Method addThresholder

Parameters:
vThresholder -
Throws:
java.lang.IndexOutOfBoundsException

addThresholder

public void addThresholder(int index,
                           Thresholder vThresholder)
                    throws java.lang.IndexOutOfBoundsException
Method addThresholder

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

clearPackage

public void clearPackage()
Method clearPackage


clearThresholder

public void clearThresholder()
Method clearThresholder


deleteThreads

public void deleteThreads()
Method deleteThreads


enumeratePackage

public java.util.Enumeration enumeratePackage()
Method enumeratePackage

Returns:
Enumeration

enumerateThresholder

public java.util.Enumeration enumerateThresholder()
Method enumerateThresholder

Returns:
Enumeration

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

getThreads

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

Returns:
int

getThresholder

public Thresholder getThresholder(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getThresholder

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

getThresholder

public Thresholder[] getThresholder()
Method getThresholder

Returns:
Thresholder

getThresholderCollection

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

Returns:
ArrayList

getThresholderCount

public int getThresholderCount()
Method getThresholderCount

Returns:
int

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

removePackage

public boolean removePackage(Package vPackage)
Method removePackage

Parameters:
vPackage -
Returns:
boolean

removeThresholder

public boolean removeThresholder(Thresholder vThresholder)
Method removeThresholder

Parameters:
vThresholder -
Returns:
boolean

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.

setThreads

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

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

setThresholder

public void setThresholder(int index,
                           Thresholder vThresholder)
                    throws java.lang.IndexOutOfBoundsException
Method setThresholder

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

setThresholder

public void setThresholder(Thresholder[] thresholderArray)
Method setThresholder

Parameters:
thresholderArray -

setThresholder

public void setThresholder(java.util.ArrayList thresholderCollection)
Method setThresholder Sets the value of 'thresholder' by copying the given ArrayList.

Parameters:
thresholderCollection - the Vector to copy.

setThresholderCollection

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

Parameters:
thresholderCollection - the ArrayList to copy.

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.