org.opennms.netmgt.config.datacollection
Class HttpDatacollectionConfig

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

public class HttpDatacollectionConfig
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
HttpDatacollectionConfig()
           
 
Method Summary
 void addHttpCollection(HttpCollection vHttpCollection)
          Method addHttpCollection
 void addHttpCollection(int index, HttpCollection vHttpCollection)
          Method addHttpCollection
 void clearHttpCollection()
          Method clearHttpCollection
 java.util.Enumeration enumerateHttpCollection()
          Method enumerateHttpCollection
 HttpCollection[] getHttpCollection()
          Method getHttpCollection
 HttpCollection getHttpCollection(int index)
          Method getHttpCollection
 java.util.ArrayList getHttpCollectionCollection()
          Method getHttpCollectionCollection Returns a reference to 'httpCollection'.
 int getHttpCollectionCount()
          Method getHttpCollectionCount
 java.lang.String getRrdRepository()
          Returns the value of field 'rrdRepository'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeHttpCollection(HttpCollection vHttpCollection)
          Method removeHttpCollection
 void setHttpCollection(java.util.ArrayList httpCollectionCollection)
          Method setHttpCollection Sets the value of 'httpCollection' by copying the given ArrayList.
 void setHttpCollection(HttpCollection[] httpCollectionArray)
          Method setHttpCollection
 void setHttpCollection(int index, HttpCollection vHttpCollection)
          Method setHttpCollection
 void setHttpCollectionCollection(java.util.ArrayList httpCollectionCollection)
          Method setHttpCollectionCollection Sets the value of 'httpCollection' by setting it to the given ArrayList.
 void setRrdRepository(java.lang.String rrdRepository)
          Sets the value of field 'rrdRepository'.
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

HttpDatacollectionConfig

public HttpDatacollectionConfig()
Method Detail

addHttpCollection

public void addHttpCollection(HttpCollection vHttpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method addHttpCollection

Parameters:
vHttpCollection -
Throws:
java.lang.IndexOutOfBoundsException

addHttpCollection

public void addHttpCollection(int index,
                              HttpCollection vHttpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method addHttpCollection

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

clearHttpCollection

public void clearHttpCollection()
Method clearHttpCollection


enumerateHttpCollection

public java.util.Enumeration enumerateHttpCollection()
Method enumerateHttpCollection

Returns:
Enumeration

getHttpCollection

public HttpCollection getHttpCollection(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getHttpCollection

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

getHttpCollection

public HttpCollection[] getHttpCollection()
Method getHttpCollection

Returns:
HttpCollection

getHttpCollectionCollection

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

Returns:
ArrayList

getHttpCollectionCount

public int getHttpCollectionCount()
Method getHttpCollectionCount

Returns:
int

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

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

removeHttpCollection

public boolean removeHttpCollection(HttpCollection vHttpCollection)
Method removeHttpCollection

Parameters:
vHttpCollection -
Returns:
boolean

setHttpCollection

public void setHttpCollection(int index,
                              HttpCollection vHttpCollection)
                       throws java.lang.IndexOutOfBoundsException
Method setHttpCollection

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

setHttpCollection

public void setHttpCollection(HttpCollection[] httpCollectionArray)
Method setHttpCollection

Parameters:
httpCollectionArray -

setHttpCollection

public void setHttpCollection(java.util.ArrayList httpCollectionCollection)
Method setHttpCollection Sets the value of 'httpCollection' by copying the given ArrayList.

Parameters:
httpCollectionCollection - the Vector to copy.

setHttpCollectionCollection

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

Parameters:
httpCollectionCollection - the ArrayList to copy.

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'.

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.