|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.collectd.Mbeans
public class Mbeans
Class Mbeans.
| Constructor Summary | |
|---|---|
Mbeans()
|
|
| Method Summary | |
|---|---|
void |
addMbean(int index,
Mbean vMbean)
|
void |
addMbean(Mbean vMbean)
|
Enumeration<Mbean> |
enumerateMbean()
Method enumerateMbean. |
Mbean[] |
getMbean()
Method getMbean.Returns the contents of the collection in an Array. |
Mbean |
getMbean(int index)
Method getMbean. |
List<Mbean> |
getMbeanCollection()
Method getMbeanCollection.Returns a reference to '_mbeanList'. |
int |
getMbeanCount()
Method getMbeanCount. |
boolean |
isValid()
Method isValid. |
Iterator<Mbean> |
iterateMbean()
Method iterateMbean. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllMbean()
|
boolean |
removeMbean(Mbean vMbean)
Method removeMbean. |
Mbean |
removeMbeanAt(int index)
Method removeMbeanAt. |
void |
setMbean(int index,
Mbean vMbean)
|
void |
setMbean(List<Mbean> vMbeanList)
Sets the value of '_mbeanList' by copying the given Vector. |
void |
setMbean(Mbean[] vMbeanArray)
|
void |
setMbeanCollection(List<Mbean> mbeanList)
Deprecated. |
static Mbeans |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mbeans()
| Method Detail |
|---|
public void addMbean(Mbean vMbean)
throws IndexOutOfBoundsException
vMbean -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addMbean(int index,
Mbean vMbean)
throws IndexOutOfBoundsException
index - vMbean -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Mbean> enumerateMbean()
public Mbean getMbean(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Mbean[] getMbean()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Mbean> getMbeanCollection()
public int getMbeanCount()
public boolean isValid()
public Iterator<Mbean> iterateMbean()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllMbean()
public boolean removeMbean(Mbean vMbean)
vMbean -
public Mbean removeMbeanAt(int index)
index -
public void setMbean(int index,
Mbean vMbean)
throws IndexOutOfBoundsException
index - vMbean -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setMbean(Mbean[] vMbeanArray)
vMbeanArray - public void setMbean(List<Mbean> vMbeanList)
vMbeanList - the Vector to copy.public void setMbeanCollection(List<Mbean> mbeanList)
mbeanList - the Vector to set.
public static Mbeans unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||