|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.threshd.ThreshdConfiguration
| Field Summary | |
private boolean |
_has_threads
keeps track of state for field: _threads |
private java.util.ArrayList |
_packageList
|
private int |
_threads
|
private java.util.ArrayList |
_thresholderList
|
private java.util.Vector |
propertyChangeListeners
|
| Constructor Summary | |
ThreshdConfiguration()
|
|
| Method Summary | |
void |
addPackage(int index,
Package vPackage)
|
void |
addPackage(Package vPackage)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addThresholder(int index,
Thresholder vThresholder)
|
void |
addThresholder(Thresholder vThresholder)
|
void |
clearPackage()
|
void |
clearThresholder()
|
java.util.Enumeration |
enumeratePackage()
|
java.util.Enumeration |
enumerateThresholder()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Package[] |
getPackage()
|
Package |
getPackage(int index)
|
java.util.Collection |
getPackageCollection()
|
int |
getPackageCount()
|
int |
getThreads()
Returns the value of field 'threads'. |
Thresholder[] |
getThresholder()
|
Thresholder |
getThresholder(int index)
|
java.util.Collection |
getThresholderCollection()
|
int |
getThresholderCount()
|
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 |
removePackage(Package vPackage)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
boolean |
removeThresholder(Thresholder vThresholder)
|
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'. |
void |
setThresholder(int index,
Thresholder vThresholder)
|
void |
setThresholder(Thresholder[] thresholderArray)
|
void |
setThresholderCollection(java.util.Collection vThresholder)
|
static ThreshdConfiguration |
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 _thresholderList
private java.util.Vector propertyChangeListeners
| Constructor Detail |
public ThreshdConfiguration()
| Method Detail |
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.IndexOutOfBoundsExceptionpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl - The PropertyChangeListener to register.
public void addThresholder(Thresholder vThresholder)
throws java.lang.IndexOutOfBoundsException
vThresholder -
java.lang.IndexOutOfBoundsException
public void addThresholder(int index,
Thresholder vThresholder)
throws java.lang.IndexOutOfBoundsException
index - vThresholder -
java.lang.IndexOutOfBoundsExceptionpublic void clearPackage()
public void clearThresholder()
public java.util.Enumeration enumeratePackage()
public java.util.Enumeration enumerateThresholder()
public boolean equals(java.lang.Object obj)
obj -
public Package getPackage(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Package[] getPackage()
public java.util.Collection getPackageCollection()
public int getPackageCount()
public int getThreads()
public Thresholder getThresholder(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Thresholder[] getThresholder()
public java.util.Collection getThresholderCollection()
public int getThresholderCount()
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 removePackage(Package vPackage)
vPackage - public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl - The PropertyChangeListener to remove.
public boolean removeThresholder(Thresholder vThresholder)
vThresholder -
public void setPackage(int index,
Package vPackage)
throws java.lang.IndexOutOfBoundsException
index - vPackage -
java.lang.IndexOutOfBoundsExceptionpublic 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 void setThresholder(int index,
Thresholder vThresholder)
throws java.lang.IndexOutOfBoundsException
index - vThresholder -
java.lang.IndexOutOfBoundsExceptionpublic void setThresholder(Thresholder[] thresholderArray)
thresholderArray - public void setThresholderCollection(java.util.Collection vThresholder)
vThresholder -
public static ThreshdConfiguration 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.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||