public class DatacollectionConfig extends Object implements Serializable
Constructor and Description |
---|
DatacollectionConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addSnmpCollection(int index,
SnmpCollection snmpCollection) |
void |
addSnmpCollection(SnmpCollection snmpCollection) |
Enumeration<SnmpCollection> |
enumerateSnmpCollection()
Method enumerateSnmpCollection.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getRrdRepository()
Returns the value of field 'rrdRepository'.
|
SnmpCollection[] |
getSnmpCollection()
Method getSnmpCollection.Returns the contents of the
collection in an Array.
|
SnmpCollection |
getSnmpCollection(int index)
Method getSnmpCollection.
|
List<SnmpCollection> |
getSnmpCollectionCollection()
Method getSnmpCollectionCollection.Returns a reference to
'_snmpCollectionList'.
|
int |
getSnmpCollectionCount()
Method getSnmpCollectionCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<SnmpCollection> |
iterateSnmpCollection()
Method iterateSnmpCollection.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllSnmpCollection() |
boolean |
removeSnmpCollection(SnmpCollection snmpCollection)
Method removeSnmpCollection.
|
SnmpCollection |
removeSnmpCollectionAt(int index)
Method removeSnmpCollectionAt.
|
void |
setRrdRepository(String rrdRepository)
Sets the value of field 'rrdRepository'.
|
void |
setSnmpCollection(int index,
SnmpCollection snmpCollection) |
void |
setSnmpCollection(List<SnmpCollection> snmpCollections)
Sets the value of '_snmpCollectionList' by copying the given
Vector.
|
void |
setSnmpCollection(SnmpCollection[] snmpCollections) |
void |
setSnmpCollectionCollection(List<SnmpCollection> snmpCollections)
Deprecated.
|
static DatacollectionConfig |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addSnmpCollection(SnmpCollection snmpCollection) throws IndexOutOfBoundsException
snmpCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSnmpCollection(int index, SnmpCollection snmpCollection) throws IndexOutOfBoundsException
index
- snmpCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<SnmpCollection> enumerateSnmpCollection()
public boolean equals(Object obj)
public String getRrdRepository()
public SnmpCollection getSnmpCollection(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic SnmpCollection[] getSnmpCollection()
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<SnmpCollection> getSnmpCollectionCollection()
public int getSnmpCollectionCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<SnmpCollection> iterateSnmpCollection()
@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllSnmpCollection()
public boolean removeSnmpCollection(SnmpCollection snmpCollection)
snmpCollection
- public SnmpCollection removeSnmpCollectionAt(int index)
index
- public void setRrdRepository(String rrdRepository)
rrdRepository
- the value of field 'rrdRepository'.public void setSnmpCollection(int index, SnmpCollection snmpCollection) throws IndexOutOfBoundsException
index
- snmpCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSnmpCollection(SnmpCollection[] snmpCollections)
snmpCollections
- public void setSnmpCollection(List<SnmpCollection> snmpCollections)
snmpCollections
- the Vector to copy.public void setSnmpCollectionCollection(List<SnmpCollection> snmpCollections)
snmpCollections
- the Vector to set.@Deprecated public static DatacollectionConfig 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.