org.opennms.netmgt.config.collectd
Class CollectdConfiguration

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

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

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

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

Constructor Summary
CollectdConfiguration()
           
 
Method Summary
 void addCollector(Collector vCollector)
          Method addCollector
 void addCollector(int index, Collector vCollector)
          Method addCollector
 void addPackage(int index, Package vPackage)
          Method addPackage
 void addPackage(Package vPackage)
          Method addPackage
 void clearCollector()
          Method clearCollector
 void clearPackage()
          Method clearPackage
 void deleteThreads()
          Method deleteThreads
 java.util.Enumeration enumerateCollector()
          Method enumerateCollector
 java.util.Enumeration enumeratePackage()
          Method enumeratePackage
 Collector[] getCollector()
          Method getCollector
 Collector getCollector(int index)
          Method getCollector
 java.util.ArrayList getCollectorCollection()
          Method getCollectorCollection Returns a reference to 'collector'.
 int getCollectorCount()
          Method getCollectorCount
 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'.
 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 removeCollector(Collector vCollector)
          Method removeCollector
 boolean removePackage(Package vPackage)
          Method removePackage
 void setCollector(java.util.ArrayList collectorCollection)
          Method setCollector Sets the value of 'collector' by copying the given ArrayList.
 void setCollector(Collector[] collectorArray)
          Method setCollector
 void setCollector(int index, Collector vCollector)
          Method setCollector
 void setCollectorCollection(java.util.ArrayList collectorCollection)
          Method setCollectorCollection Sets the value of 'collector' by setting it to the given ArrayList.
 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'.
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

CollectdConfiguration

public CollectdConfiguration()
Method Detail

addCollector

public void addCollector(Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Method addCollector

Parameters:
vCollector -
Throws:
java.lang.IndexOutOfBoundsException

addCollector

public void addCollector(int index,
                         Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Method addCollector

Parameters:
index -
vCollector -
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

clearCollector

public void clearCollector()
Method clearCollector


clearPackage

public void clearPackage()
Method clearPackage


deleteThreads

public void deleteThreads()
Method deleteThreads


enumerateCollector

public java.util.Enumeration enumerateCollector()
Method enumerateCollector

Returns:
Enumeration

enumeratePackage

public java.util.Enumeration enumeratePackage()
Method enumeratePackage

Returns:
Enumeration

getCollector

public Collector getCollector(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getCollector

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

getCollector

public Collector[] getCollector()
Method getCollector

Returns:
Collector

getCollectorCollection

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

Returns:
ArrayList

getCollectorCount

public int getCollectorCount()
Method getCollectorCount

Returns:
int

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: The maximum number of threads used for data collection.

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

removeCollector

public boolean removeCollector(Collector vCollector)
Method removeCollector

Parameters:
vCollector -
Returns:
boolean

removePackage

public boolean removePackage(Package vPackage)
Method removePackage

Parameters:
vPackage -
Returns:
boolean

setCollector

public void setCollector(int index,
                         Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Method setCollector

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

setCollector

public void setCollector(Collector[] collectorArray)
Method setCollector

Parameters:
collectorArray -

setCollector

public void setCollector(java.util.ArrayList collectorCollection)
Method setCollector Sets the value of 'collector' by copying the given ArrayList.

Parameters:
collectorCollection - the Vector to copy.

setCollectorCollection

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

Parameters:
collectorCollection - the ArrayList to copy.

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: The maximum number of threads used for data collection.

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

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.