org.opennms.netmgt.config.datacollection
Class SnmpCollection

java.lang.Object
  extended by org.opennms.netmgt.config.datacollection.SnmpCollection
All Implemented Interfaces:
java.io.Serializable

public class SnmpCollection
extends java.lang.Object
implements java.io.Serializable

a grouping of SNMP related RRD parms, MIB object groups and sysoid based system definitions.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
SnmpCollection()
           
 
Method Summary
 void addResourceType(int index, ResourceType vResourceType)
          Method addResourceType
 void addResourceType(ResourceType vResourceType)
          Method addResourceType
 void clearResourceType()
          Method clearResourceType
 void deleteMaxVarsPerPdu()
          Method deleteMaxVarsPerPdu
 java.util.Enumeration enumerateResourceType()
          Method enumerateResourceType
 Groups getGroups()
          Returns the value of field 'groups'.
 int getMaxVarsPerPdu()
          Returns the value of field 'maxVarsPerPdu'.
 java.lang.String getName()
          Returns the value of field 'name'.
 ResourceType[] getResourceType()
          Method getResourceType
 ResourceType getResourceType(int index)
          Method getResourceType
 java.util.ArrayList getResourceTypeCollection()
          Method getResourceTypeCollection Returns a reference to 'resourceType'.
 int getResourceTypeCount()
          Method getResourceTypeCount
 Rrd getRrd()
          Returns the value of field 'rrd'.
 java.lang.String getSnmpStorageFlag()
          Returns the value of field 'snmpStorageFlag'.
 Systems getSystems()
          Returns the value of field 'systems'.
 boolean hasMaxVarsPerPdu()
          Method hasMaxVarsPerPdu
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeResourceType(ResourceType vResourceType)
          Method removeResourceType
 void setGroups(Groups groups)
          Sets the value of field 'groups'.
 void setMaxVarsPerPdu(int maxVarsPerPdu)
          Sets the value of field 'maxVarsPerPdu'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setResourceType(java.util.ArrayList resourceTypeCollection)
          Method setResourceType Sets the value of 'resourceType' by copying the given ArrayList.
 void setResourceType(int index, ResourceType vResourceType)
          Method setResourceType
 void setResourceType(ResourceType[] resourceTypeArray)
          Method setResourceType
 void setResourceTypeCollection(java.util.ArrayList resourceTypeCollection)
          Method setResourceTypeCollection Sets the value of 'resourceType' by setting it to the given ArrayList.
 void setRrd(Rrd rrd)
          Sets the value of field 'rrd'.
 void setSnmpStorageFlag(java.lang.String snmpStorageFlag)
          Sets the value of field 'snmpStorageFlag'.
 void setSystems(Systems systems)
          Sets the value of field 'systems'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpCollection

public SnmpCollection()
Method Detail

addResourceType

public void addResourceType(ResourceType vResourceType)
                     throws java.lang.IndexOutOfBoundsException
Method addResourceType

Parameters:
vResourceType -
Throws:
java.lang.IndexOutOfBoundsException

addResourceType

public void addResourceType(int index,
                            ResourceType vResourceType)
                     throws java.lang.IndexOutOfBoundsException
Method addResourceType

Parameters:
index -
vResourceType -
Throws:
java.lang.IndexOutOfBoundsException

clearResourceType

public void clearResourceType()
Method clearResourceType


deleteMaxVarsPerPdu

public void deleteMaxVarsPerPdu()
Method deleteMaxVarsPerPdu


enumerateResourceType

public java.util.Enumeration enumerateResourceType()
Method enumerateResourceType

Returns:
Enumeration

getGroups

public Groups getGroups()
Returns the value of field 'groups'. The field 'groups' has the following description: MIB object groups

Returns:
Groups

getMaxVarsPerPdu

public int getMaxVarsPerPdu()
Returns the value of field 'maxVarsPerPdu'. The field 'maxVarsPerPdu' has the following description: Specifies the maximum number of variables that may be encoded into an individual SNMP pdu request by Collectd. Provides a means to limit the size of outgoing PDU requests. Value of 0 indicates no limit on number of PDUs which can be encoded into a single PDU.

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: collector name

Returns:
String

getResourceType

public ResourceType getResourceType(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getResourceType

Parameters:
index -
Returns:
ResourceType
Throws:
java.lang.IndexOutOfBoundsException

getResourceType

public ResourceType[] getResourceType()
Method getResourceType

Returns:
ResourceType

getResourceTypeCollection

public java.util.ArrayList getResourceTypeCollection()
Method getResourceTypeCollection Returns a reference to 'resourceType'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getResourceTypeCount

public int getResourceTypeCount()
Method getResourceTypeCount

Returns:
int

getRrd

public Rrd getRrd()
Returns the value of field 'rrd'. The field 'rrd' has the following description: RRD parms

Returns:
Rrd

getSnmpStorageFlag

public java.lang.String getSnmpStorageFlag()
Returns the value of field 'snmpStorageFlag'. The field 'snmpStorageFlag' has the following description: indicates if collected SNMP data is to be stored for "all" interfaces or only for the "primary" interface.

Returns:
String

getSystems

public Systems getSystems()
Returns the value of field 'systems'. The field 'systems' has the following description: sysOid-based sytems

Returns:
Systems

hasMaxVarsPerPdu

public boolean hasMaxVarsPerPdu()
Method hasMaxVarsPerPdu

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeResourceType

public boolean removeResourceType(ResourceType vResourceType)
Method removeResourceType

Parameters:
vResourceType -
Returns:
boolean

setGroups

public void setGroups(Groups groups)
Sets the value of field 'groups'. The field 'groups' has the following description: MIB object groups

Parameters:
groups - the value of field 'groups'.

setMaxVarsPerPdu

public void setMaxVarsPerPdu(int maxVarsPerPdu)
Sets the value of field 'maxVarsPerPdu'. The field 'maxVarsPerPdu' has the following description: Specifies the maximum number of variables that may be encoded into an individual SNMP pdu request by Collectd. Provides a means to limit the size of outgoing PDU requests. Value of 0 indicates no limit on number of PDUs which can be encoded into a single PDU.

Parameters:
maxVarsPerPdu - the value of field 'maxVarsPerPdu'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: collector name

Parameters:
name - the value of field 'name'.

setResourceType

public void setResourceType(int index,
                            ResourceType vResourceType)
                     throws java.lang.IndexOutOfBoundsException
Method setResourceType

Parameters:
index -
vResourceType -
Throws:
java.lang.IndexOutOfBoundsException

setResourceType

public void setResourceType(ResourceType[] resourceTypeArray)
Method setResourceType

Parameters:
resourceTypeArray -

setResourceType

public void setResourceType(java.util.ArrayList resourceTypeCollection)
Method setResourceType Sets the value of 'resourceType' by copying the given ArrayList.

Parameters:
resourceTypeCollection - the Vector to copy.

setResourceTypeCollection

public void setResourceTypeCollection(java.util.ArrayList resourceTypeCollection)
Method setResourceTypeCollection Sets the value of 'resourceType' by setting it to the given ArrayList. No type checking is performed.

Parameters:
resourceTypeCollection - the ArrayList to copy.

setRrd

public void setRrd(Rrd rrd)
Sets the value of field 'rrd'. The field 'rrd' has the following description: RRD parms

Parameters:
rrd - the value of field 'rrd'.

setSnmpStorageFlag

public void setSnmpStorageFlag(java.lang.String snmpStorageFlag)
Sets the value of field 'snmpStorageFlag'. The field 'snmpStorageFlag' has the following description: indicates if collected SNMP data is to be stored for "all" interfaces or only for the "primary" interface.

Parameters:
snmpStorageFlag - the value of field 'snmpStorageFlag'.

setSystems

public void setSystems(Systems systems)
Sets the value of field 'systems'. The field 'systems' has the following description: sysOid-based sytems

Parameters:
systems - the value of field 'systems'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.