|
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.Service
Field Summary | |
private boolean |
_has_interval
keeps track of state for field: _interval |
private long |
_interval
|
private java.lang.String |
_name
|
private java.util.ArrayList |
_parameterList
|
private java.lang.String |
_status
|
private java.lang.String |
_userDefined
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Service()
|
Method Summary | |
void |
addParameter(int index,
Parameter vParameter)
|
void |
addParameter(Parameter vParameter)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearParameter()
|
java.util.Enumeration |
enumerateParameter()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
long |
getInterval()
Returns the value of field 'interval'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
Parameter[] |
getParameter()
|
Parameter |
getParameter(int index)
|
java.util.Collection |
getParameterCollection()
|
int |
getParameterCount()
|
java.lang.String |
getStatus()
Returns the value of field 'status'. |
java.lang.String |
getUserDefined()
Returns the value of field 'userDefined'. |
boolean |
hasInterval()
|
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 |
removeParameter(Parameter vParameter)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setInterval(long interval)
Sets the value of field 'interval'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setParameter(int index,
Parameter vParameter)
|
void |
setParameter(Parameter[] parameterArray)
|
void |
setParameterCollection(java.util.Collection vParameter)
|
void |
setStatus(java.lang.String status)
Sets the value of field 'status'. |
void |
setUserDefined(java.lang.String userDefined)
Sets the value of field 'userDefined'. |
static Service |
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 java.lang.String _name
private long _interval
private boolean _has_interval
private java.lang.String _userDefined
private java.lang.String _status
private java.util.ArrayList _parameterList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Service()
Method Detail |
public void addParameter(Parameter vParameter) throws java.lang.IndexOutOfBoundsException
vParameter
-
java.lang.IndexOutOfBoundsException
public void addParameter(int index, Parameter vParameter) throws java.lang.IndexOutOfBoundsException
index
- vParameter
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearParameter()
public java.util.Enumeration enumerateParameter()
public boolean equals(java.lang.Object obj)
obj
- public long getInterval()
public java.lang.String getName()
public Parameter getParameter(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Parameter[] getParameter()
public java.util.Collection getParameterCollection()
public int getParameterCount()
public java.lang.String getStatus()
public java.lang.String getUserDefined()
public boolean hasInterval()
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 removeParameter(Parameter vParameter)
vParameter
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setInterval(long interval)
interval
- the value of field 'interval'.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setParameter(int index, Parameter vParameter) throws java.lang.IndexOutOfBoundsException
index
- vParameter
-
java.lang.IndexOutOfBoundsException
public void setParameter(Parameter[] parameterArray)
parameterArray
- public void setParameterCollection(java.util.Collection vParameter)
vParameter
- public void setStatus(java.lang.String status)
status
- the value of field 'status'.public void setUserDefined(java.lang.String userDefined)
userDefined
- the value of field 'userDefined'.public static Service 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 |