org.opennms.netmgt.config.statsd
Class StatisticsDaemonConfiguration

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

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

Top-level element for the statsd-configuration.xml configuration file.

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

Constructor Summary
StatisticsDaemonConfiguration()
           
 
Method Summary
 void addPackage(int index, Package vPackage)
          Method addPackage
 void addPackage(Package vPackage)
          Method addPackage
 void addReport(int index, Report vReport)
          Method addReport
 void addReport(Report vReport)
          Method addReport
 void clearPackage()
          Method clearPackage
 void clearReport()
          Method clearReport
 java.util.Enumeration enumeratePackage()
          Method enumeratePackage
 java.util.Enumeration enumerateReport()
          Method enumerateReport
 Package[] getPackage()
          Method getPackage
 Package getPackage(int index)
          Method getPackage
 java.util.ArrayList getPackageCollection()
          Method getPackageCollection Returns a reference to '_package'.
 int getPackageCount()
          Method getPackageCount
 Report[] getReport()
          Method getReport
 Report getReport(int index)
          Method getReport
 java.util.ArrayList getReportCollection()
          Method getReportCollection Returns a reference to 'report'.
 int getReportCount()
          Method getReportCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removePackage(Package vPackage)
          Method removePackage
 boolean removeReport(Report vReport)
          Method removeReport
 void setPackage(java.util.ArrayList _packageCollection)
          Method setPackage Sets the value of '_package' by copying the given ArrayList.
 void setPackage(int index, Package vPackage)
          Method setPackage
 void setPackage(Package[] _packageArray)
          Method setPackage
 void setPackageCollection(java.util.ArrayList _packageCollection)
          Method setPackageCollection Sets the value of '_package' by setting it to the given ArrayList.
 void setReport(java.util.ArrayList reportCollection)
          Method setReport Sets the value of 'report' by copying the given ArrayList.
 void setReport(int index, Report vReport)
          Method setReport
 void setReport(Report[] reportArray)
          Method setReport
 void setReportCollection(java.util.ArrayList reportCollection)
          Method setReportCollection Sets the value of 'report' 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

StatisticsDaemonConfiguration

public StatisticsDaemonConfiguration()
Method Detail

addPackage

public void addPackage(Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

Parameters:
vPackage -
Throws:
java.lang.IndexOutOfBoundsException

addPackage

public void addPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method addPackage

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

addReport

public void addReport(Report vReport)
               throws java.lang.IndexOutOfBoundsException
Method addReport

Parameters:
vReport -
Throws:
java.lang.IndexOutOfBoundsException

addReport

public void addReport(int index,
                      Report vReport)
               throws java.lang.IndexOutOfBoundsException
Method addReport

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

clearPackage

public void clearPackage()
Method clearPackage


clearReport

public void clearReport()
Method clearReport


enumeratePackage

public java.util.Enumeration enumeratePackage()
Method enumeratePackage

Returns:
Enumeration

enumerateReport

public java.util.Enumeration enumerateReport()
Method enumerateReport

Returns:
Enumeration

getPackage

public Package getPackage(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getPackage

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

getPackage

public Package[] getPackage()
Method getPackage

Returns:
Package

getPackageCollection

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

Returns:
ArrayList

getPackageCount

public int getPackageCount()
Method getPackageCount

Returns:
int

getReport

public Report getReport(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getReport

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

getReport

public Report[] getReport()
Method getReport

Returns:
Report

getReportCollection

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

Returns:
ArrayList

getReportCount

public int getReportCount()
Method getReportCount

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

removePackage

public boolean removePackage(Package vPackage)
Method removePackage

Parameters:
vPackage -
Returns:
boolean

removeReport

public boolean removeReport(Report vReport)
Method removeReport

Parameters:
vReport -
Returns:
boolean

setPackage

public void setPackage(int index,
                       Package vPackage)
                throws java.lang.IndexOutOfBoundsException
Method setPackage

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

setPackage

public void setPackage(Package[] _packageArray)
Method setPackage

Parameters:
_packageArray -

setPackage

public void setPackage(java.util.ArrayList _packageCollection)
Method setPackage Sets the value of '_package' by copying the given ArrayList.

Parameters:
_packageCollection - the Vector to copy.

setPackageCollection

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

Parameters:
_packageCollection - the ArrayList to copy.

setReport

public void setReport(int index,
                      Report vReport)
               throws java.lang.IndexOutOfBoundsException
Method setReport

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

setReport

public void setReport(Report[] reportArray)
Method setReport

Parameters:
reportArray -

setReport

public void setReport(java.util.ArrayList reportCollection)
Method setReport Sets the value of 'report' by copying the given ArrayList.

Parameters:
reportCollection - the Vector to copy.

setReportCollection

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

Parameters:
reportCollection - 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.