|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.collectd.CollectdConfiguration
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 |
private int _threads
private boolean _has_threads
private java.util.ArrayList _packageList
private java.util.ArrayList _collectorList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public CollectdConfiguration()
Method Detail |
public void addCollector(Collector vCollector) throws java.lang.IndexOutOfBoundsException
vCollector
-
java.lang.IndexOutOfBoundsException
public void addCollector(int index, Collector vCollector) throws java.lang.IndexOutOfBoundsException
index
- vCollector
-
java.lang.IndexOutOfBoundsException
public void addPackage(Package vPackage) throws java.lang.IndexOutOfBoundsException
vPackage
-
java.lang.IndexOutOfBoundsException
public void addPackage(int index, Package vPackage) throws java.lang.IndexOutOfBoundsException
index
- vPackage
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearCollector()
public void clearPackage()
public java.util.Enumeration enumerateCollector()
public java.util.Enumeration enumeratePackage()
public boolean equals(java.lang.Object obj)
obj
- public Collector getCollector(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Collector[] getCollector()
public java.util.Collection getCollectorCollection()
public int getCollectorCount()
public Package getPackage(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Package[] getPackage()
public java.util.Collection getPackageCollection()
public int getPackageCount()
public int getThreads()
public boolean hasThreads()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeCollector(Collector vCollector)
vCollector
- public boolean removePackage(Package vPackage)
vPackage
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setCollector(int index, Collector vCollector) throws java.lang.IndexOutOfBoundsException
index
- vCollector
-
java.lang.IndexOutOfBoundsException
public void setCollector(Collector[] collectorArray)
collectorArray
- public void setCollectorCollection(java.util.Collection vCollector)
vCollector
- public void setPackage(int index, Package vPackage) throws java.lang.IndexOutOfBoundsException
index
- vPackage
-
java.lang.IndexOutOfBoundsException
public void setPackage(Package[] _packageArray)
_packageArray
- public void setPackageCollection(java.util.Collection vPackage)
vPackage
- public void setThreads(int threads)
threads
- the value of field 'threads'.public static CollectdConfiguration unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |