org.opennms.netmgt.config.collectd
Class Collector

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

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

Collector for a service

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

Constructor Summary
Collector()
           
 
Method Summary
 void addParameter(int index, Parameter vParameter)
          Method addParameter
 void addParameter(Parameter vParameter)
          Method addParameter
 void clearParameter()
          Method clearParameter
 java.util.Enumeration enumerateParameter()
          Method enumerateParameter
 java.lang.String getClassName()
          Returns the value of field 'className'.
 Parameter[] getParameter()
          Method getParameter
 Parameter getParameter(int index)
          Method getParameter
 java.util.ArrayList getParameterCollection()
          Method getParameterCollection Returns a reference to 'parameter'.
 int getParameterCount()
          Method getParameterCount
 java.lang.String getService()
          Returns the value of field 'service'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParameter(Parameter vParameter)
          Method removeParameter
 void setClassName(java.lang.String className)
          Sets the value of field 'className'.
 void setParameter(java.util.ArrayList parameterCollection)
          Method setParameter Sets the value of 'parameter' by copying the given ArrayList.
 void setParameter(int index, Parameter vParameter)
          Method setParameter
 void setParameter(Parameter[] parameterArray)
          Method setParameter
 void setParameterCollection(java.util.ArrayList parameterCollection)
          Method setParameterCollection Sets the value of 'parameter' by setting it to the given ArrayList.
 void setService(java.lang.String service)
          Sets the value of field 'service'.
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

Collector

public Collector()
Method Detail

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addParameter

public void addParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

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

clearParameter

public void clearParameter()
Method clearParameter


enumerateParameter

public java.util.Enumeration enumerateParameter()
Method enumerateParameter

Returns:
Enumeration

getClassName

public java.lang.String getClassName()
Returns the value of field 'className'. The field 'className' has the following description: The class used to perform data collection via the service

Returns:
String

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getParameter

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

getParameter

public Parameter[] getParameter()
Method getParameter

Returns:
Parameter

getParameterCollection

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

Returns:
ArrayList

getParameterCount

public int getParameterCount()
Method getParameterCount

Returns:
int

getService

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

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

removeParameter

public boolean removeParameter(Parameter vParameter)
Method removeParameter

Parameters:
vParameter -
Returns:
boolean

setClassName

public void setClassName(java.lang.String className)
Sets the value of field 'className'. The field 'className' has the following description: The class used to perform data collection via the service

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

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method setParameter

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

setParameter

public void setParameter(Parameter[] parameterArray)
Method setParameter

Parameters:
parameterArray -

setParameter

public void setParameter(java.util.ArrayList parameterCollection)
Method setParameter Sets the value of 'parameter' by copying the given ArrayList.

Parameters:
parameterCollection - the Vector to copy.

setParameterCollection

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

Parameters:
parameterCollection - the ArrayList to copy.

setService

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

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

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.