OpenNMS API 1.2.3

org.opennms.netmgt.config.collectd
Class CollectdConfiguration

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

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

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

Field Summary
private  java.util.ArrayList _collectorList
           
private  boolean _has_threads
          keeps track of state for field: _threads
private  java.util.ArrayList _packageList
           
private  int _threads
           
private  java.util.Vector propertyChangeListeners
           
 
Constructor Summary
CollectdConfiguration()
           
 
Method Summary
 void addCollector(Collector vCollector)
           
 void addCollector(int index, Collector vCollector)
           
 void addPackage(int index, Package vPackage)
           
 void addPackage(Package vPackage)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Registers a PropertyChangeListener with this class.
 void clearCollector()
           
 void clearPackage()
           
 java.util.Enumeration enumerateCollector()
           
 java.util.Enumeration enumeratePackage()
           
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 Collector[] getCollector()
           
 Collector getCollector(int index)
           
 java.util.Collection getCollectorCollection()
           
 int getCollectorCount()
           
 Package[] getPackage()
           
 Package getPackage(int index)
           
 java.util.Collection getPackageCollection()
           
 int getPackageCount()
           
 int getThreads()
          Returns the value of field 'threads'.
 boolean hasThreads()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
protected  void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
          Notifies all registered PropertyChangeListeners when a bound property's value changes.
 boolean removeCollector(Collector vCollector)
           
 boolean removePackage(Package vPackage)
           
 boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.
 void setCollector(Collector[] collectorArray)
           
 void setCollector(int index, Collector vCollector)
           
 void setCollectorCollection(java.util.Collection vCollector)
           
 void setPackage(int index, Package vPackage)
           
 void setPackage(Package[] _packageArray)
           
 void setPackageCollection(java.util.Collection vPackage)
           
 void setThreads(int threads)
          Sets the value of field 'threads'.
static CollectdConfiguration unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_threads

private int _threads

_has_threads

private boolean _has_threads
keeps track of state for field: _threads


_packageList

private java.util.ArrayList _packageList

_collectorList

private java.util.ArrayList _collectorList

propertyChangeListeners

private java.util.Vector propertyChangeListeners
Constructor Detail

CollectdConfiguration

public CollectdConfiguration()
Method Detail

addCollector

public void addCollector(Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
vCollector -
Throws:
java.lang.IndexOutOfBoundsException

addCollector

public void addCollector(int index,
                         Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vCollector -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class.

Parameters:
pcl - The PropertyChangeListener to register.

clearCollector

public void clearCollector()

clearPackage

public void clearPackage()

enumerateCollector

public java.util.Enumeration enumerateCollector()

enumeratePackage

public java.util.Enumeration enumeratePackage()

equals

public boolean equals(java.lang.Object obj)
Note: hashCode() has not been overriden

Parameters:
obj -

getCollector

public Collector getCollector(int index)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getCollector

public Collector[] getCollector()

getCollectorCollection

public java.util.Collection getCollectorCollection()

getCollectorCount

public int getCollectorCount()

getPackage

public Package getPackage(int index)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getPackage

public Package[] getPackage()

getPackageCollection

public java.util.Collection getPackageCollection()

getPackageCount

public int getPackageCount()

getThreads

public int getThreads()
Returns the value of field 'threads'.

Returns:
the value of field 'threads'.

hasThreads

public boolean hasThreads()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

notifyPropertyChangeListeners

protected void notifyPropertyChangeListeners(java.lang.String fieldName,
                                             java.lang.Object oldValue,
                                             java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes.

Parameters:
fieldName - the name of the property that has changed.
newValue - the new value of the property.
oldValue - the old value of the property.

removeCollector

public boolean removeCollector(Collector vCollector)
Parameters:
vCollector -

removePackage

public boolean removePackage(Package vPackage)
Parameters:
vPackage -

removePropertyChangeListener

public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.

Parameters:
pcl - The PropertyChangeListener to remove.
Returns:
true if the given PropertyChangeListener was removed.

setCollector

public void setCollector(int index,
                         Collector vCollector)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vCollector -
Throws:
java.lang.IndexOutOfBoundsException

setCollector

public void setCollector(Collector[] collectorArray)
Parameters:
collectorArray -

setCollectorCollection

public void setCollectorCollection(java.util.Collection vCollector)
Parameters:
vCollector -

setPackage

public void setPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

setPackage

public void setPackage(Package[] _packageArray)
Parameters:
_packageArray -

setPackageCollection

public void setPackageCollection(java.util.Collection vPackage)
Parameters:
vPackage -

setThreads

public void setThreads(int threads)
Sets the value of field 'threads'.

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

unmarshal

public static CollectdConfiguration unmarshal(java.io.Reader reader)
                                       throws org.exolab.castor.xml.MarshalException,
                                              org.exolab.castor.xml.ValidationException
Parameters:
reader -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

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

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.