org.opennms.netmgt.config.datacollection
Class DatacollectionConfig

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

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

Top-level element for the datacollection-config.xml configuration file.

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

Constructor Summary
DatacollectionConfig()
           
 
Method Summary
 void addSnmpCollection(int index, SnmpCollection vSnmpCollection)
          Method addSnmpCollection
 void addSnmpCollection(SnmpCollection vSnmpCollection)
          Method addSnmpCollection
 void clearSnmpCollection()
          Method clearSnmpCollection
 java.util.Enumeration enumerateSnmpCollection()
          Method enumerateSnmpCollection
 java.lang.String getRrdRepository()
          Returns the value of field 'rrdRepository'.
 SnmpCollection[] getSnmpCollection()
          Method getSnmpCollection
 SnmpCollection getSnmpCollection(int index)
          Method getSnmpCollection
 java.util.ArrayList getSnmpCollectionCollection()
          Method getSnmpCollectionCollection Returns a reference to 'snmpCollection'.
 int getSnmpCollectionCount()
          Method getSnmpCollectionCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeSnmpCollection(SnmpCollection vSnmpCollection)
          Method removeSnmpCollection
 void setRrdRepository(java.lang.String rrdRepository)
          Sets the value of field 'rrdRepository'.
 void setSnmpCollection(java.util.ArrayList snmpCollectionCollection)
          Method setSnmpCollection Sets the value of 'snmpCollection' by copying the given ArrayList.
 void setSnmpCollection(int index, SnmpCollection vSnmpCollection)
          Method setSnmpCollection
 void setSnmpCollection(SnmpCollection[] snmpCollectionArray)
          Method setSnmpCollection
 void setSnmpCollectionCollection(java.util.ArrayList snmpCollectionCollection)
          Method setSnmpCollectionCollection Sets the value of 'snmpCollection' by setting it to the given ArrayList.
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

DatacollectionConfig

public DatacollectionConfig()
Method Detail

addSnmpCollection

public void addSnmpCollection(SnmpCollection vSnmpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method addSnmpCollection

Parameters:
vSnmpCollection -
Throws:
java.lang.IndexOutOfBoundsException

addSnmpCollection

public void addSnmpCollection(int index,
                              SnmpCollection vSnmpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method addSnmpCollection

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

clearSnmpCollection

public void clearSnmpCollection()
Method clearSnmpCollection


enumerateSnmpCollection

public java.util.Enumeration enumerateSnmpCollection()
Method enumerateSnmpCollection

Returns:
Enumeration

getRrdRepository

public java.lang.String getRrdRepository()
Returns the value of field 'rrdRepository'. The field 'rrdRepository' has the following description: full path to the RRD repository for collected SNMP data

Returns:
String

getSnmpCollection

public SnmpCollection getSnmpCollection(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getSnmpCollection

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

getSnmpCollection

public SnmpCollection[] getSnmpCollection()
Method getSnmpCollection

Returns:
SnmpCollection

getSnmpCollectionCollection

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

Returns:
ArrayList

getSnmpCollectionCount

public int getSnmpCollectionCount()
Method getSnmpCollectionCount

Returns:
int

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

removeSnmpCollection

public boolean removeSnmpCollection(SnmpCollection vSnmpCollection)
Method removeSnmpCollection

Parameters:
vSnmpCollection -
Returns:
boolean

setRrdRepository

public void setRrdRepository(java.lang.String rrdRepository)
Sets the value of field 'rrdRepository'. The field 'rrdRepository' has the following description: full path to the RRD repository for collected SNMP data

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

setSnmpCollection

public void setSnmpCollection(int index,
                              SnmpCollection vSnmpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method setSnmpCollection

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

setSnmpCollection

public void setSnmpCollection(SnmpCollection[] snmpCollectionArray)
Method setSnmpCollection

Parameters:
snmpCollectionArray -

setSnmpCollection

public void setSnmpCollection(java.util.ArrayList snmpCollectionCollection)
Method setSnmpCollection Sets the value of 'snmpCollection' by copying the given ArrayList.

Parameters:
snmpCollectionCollection - the Vector to copy.

setSnmpCollectionCollection

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

Parameters:
snmpCollectionCollection - the ArrayList to copy.

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.