|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.datacollection.SnmpCollection
public class SnmpCollection
a grouping of SNMP related RRD parms, MIB object groups and sysoid based system definitions.
| Constructor Summary | |
|---|---|
SnmpCollection()
|
|
| Method Summary | |
|---|---|
void |
addResourceType(int index,
ResourceType vResourceType)
|
void |
addResourceType(ResourceType vResourceType)
|
void |
deleteMaxVarsPerPdu()
|
Enumeration<ResourceType> |
enumerateResourceType()
Method enumerateResourceType. |
Groups |
getGroups()
Returns the value of field 'groups'. |
int |
getMaxVarsPerPdu()
Returns the value of field 'maxVarsPerPdu'. |
String |
getName()
Returns the value of field 'name'. |
ResourceType[] |
getResourceType()
Method getResourceType.Returns the contents of the collection in an Array. |
ResourceType |
getResourceType(int index)
Method getResourceType. |
List<ResourceType> |
getResourceTypeCollection()
Method getResourceTypeCollection.Returns a reference to '_resourceTypeList'. |
int |
getResourceTypeCount()
Method getResourceTypeCount. |
Rrd |
getRrd()
Returns the value of field 'rrd'. |
String |
getSnmpStorageFlag()
Returns the value of field 'snmpStorageFlag'. |
Systems |
getSystems()
Returns the value of field 'systems'. |
boolean |
hasMaxVarsPerPdu()
Method hasMaxVarsPerPdu. |
boolean |
isValid()
Method isValid. |
Iterator<ResourceType> |
iterateResourceType()
Method iterateResourceType. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllResourceType()
|
boolean |
removeResourceType(ResourceType vResourceType)
Method removeResourceType. |
ResourceType |
removeResourceTypeAt(int index)
Method removeResourceTypeAt. |
void |
setGroups(Groups groups)
Sets the value of field 'groups'. |
void |
setMaxVarsPerPdu(int maxVarsPerPdu)
Sets the value of field 'maxVarsPerPdu'. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setResourceType(int index,
ResourceType vResourceType)
|
void |
setResourceType(List<ResourceType> vResourceTypeList)
Sets the value of '_resourceTypeList' by copying the given Vector. |
void |
setResourceType(ResourceType[] vResourceTypeArray)
|
void |
setResourceTypeCollection(List<ResourceType> resourceTypeList)
Deprecated. |
void |
setRrd(Rrd rrd)
Sets the value of field 'rrd'. |
void |
setSnmpStorageFlag(String snmpStorageFlag)
Sets the value of field 'snmpStorageFlag'. |
void |
setSystems(Systems systems)
Sets the value of field 'systems'. |
static SnmpCollection |
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 SnmpCollection()
| Method Detail |
|---|
public void addResourceType(ResourceType vResourceType)
throws IndexOutOfBoundsException
vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResourceType(int index,
ResourceType vResourceType)
throws IndexOutOfBoundsException
index - vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteMaxVarsPerPdu()
public Enumeration<ResourceType> enumerateResourceType()
public Groups getGroups()
public int getMaxVarsPerPdu()
public String getName()
public ResourceType getResourceType(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ResourceType[] getResourceType()
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<ResourceType> getResourceTypeCollection()
public int getResourceTypeCount()
public Rrd getRrd()
public String getSnmpStorageFlag()
public Systems getSystems()
public boolean hasMaxVarsPerPdu()
public boolean isValid()
public Iterator<ResourceType> iterateResourceType()
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 removeAllResourceType()
public boolean removeResourceType(ResourceType vResourceType)
vResourceType -
public ResourceType removeResourceTypeAt(int index)
index -
public void setGroups(Groups groups)
groups - the value of field 'groups'.public void setMaxVarsPerPdu(int maxVarsPerPdu)
maxVarsPerPdu - the value of field 'maxVarsPerPdu'.public void setName(String name)
name - the value of field 'name'.
public void setResourceType(int index,
ResourceType vResourceType)
throws IndexOutOfBoundsException
index - vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setResourceType(ResourceType[] vResourceTypeArray)
vResourceTypeArray - public void setResourceType(List<ResourceType> vResourceTypeList)
vResourceTypeList - the Vector to copy.public void setResourceTypeCollection(List<ResourceType> resourceTypeList)
resourceTypeList - the Vector to set.public void setRrd(Rrd rrd)
rrd - the value of field 'rrd'.public void setSnmpStorageFlag(String snmpStorageFlag)
snmpStorageFlag - the value of field 'snmpStorageFlag'.public void setSystems(Systems systems)
systems - the value of field 'systems'.
public static SnmpCollection 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 | ||||||||