org.opennms.netmgt.config.vacuumd
Class VacuumdConfiguration

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

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

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

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

Constructor Summary
VacuumdConfiguration()
           
 
Method Summary
 void addStatement(int index, Statement vStatement)
          Method addStatement
 void addStatement(Statement vStatement)
          Method addStatement
 void clearStatement()
          Method clearStatement
 void deletePeriod()
          Method deletePeriod
 java.util.Enumeration enumerateStatement()
          Method enumerateStatement
 ActionEvents getActionEvents()
          Returns the value of field 'actionEvents'.
 Actions getActions()
          Returns the value of field 'actions'.
 AutoEvents getAutoEvents()
          Returns the value of field 'autoEvents'.
 Automations getAutomations()
          Returns the value of field 'automations'.
 int getPeriod()
          Returns the value of field 'period'.
 Statement[] getStatement()
          Method getStatement
 Statement getStatement(int index)
          Method getStatement
 java.util.ArrayList getStatementCollection()
          Method getStatementCollection Returns a reference to 'statement'.
 int getStatementCount()
          Method getStatementCount
 Triggers getTriggers()
          Returns the value of field 'triggers'.
 boolean hasPeriod()
          Method hasPeriod
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeStatement(Statement vStatement)
          Method removeStatement
 void setActionEvents(ActionEvents actionEvents)
          Sets the value of field 'actionEvents'.
 void setActions(Actions actions)
          Sets the value of field 'actions'.
 void setAutoEvents(AutoEvents autoEvents)
          Sets the value of field 'autoEvents'.
 void setAutomations(Automations automations)
          Sets the value of field 'automations'.
 void setPeriod(int period)
          Sets the value of field 'period'.
 void setStatement(java.util.ArrayList statementCollection)
          Method setStatement Sets the value of 'statement' by copying the given ArrayList.
 void setStatement(int index, Statement vStatement)
          Method setStatement
 void setStatement(Statement[] statementArray)
          Method setStatement
 void setStatementCollection(java.util.ArrayList statementCollection)
          Method setStatementCollection Sets the value of 'statement' by setting it to the given ArrayList.
 void setTriggers(Triggers triggers)
          Sets the value of field 'triggers'.
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

VacuumdConfiguration

public VacuumdConfiguration()
Method Detail

addStatement

public void addStatement(Statement vStatement)
                  throws java.lang.IndexOutOfBoundsException
Method addStatement

Parameters:
vStatement -
Throws:
java.lang.IndexOutOfBoundsException

addStatement

public void addStatement(int index,
                         Statement vStatement)
                  throws java.lang.IndexOutOfBoundsException
Method addStatement

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

clearStatement

public void clearStatement()
Method clearStatement


deletePeriod

public void deletePeriod()
Method deletePeriod


enumerateStatement

public java.util.Enumeration enumerateStatement()
Method enumerateStatement

Returns:
Enumeration

getActionEvents

public ActionEvents getActionEvents()
Returns the value of field 'actionEvents'.

Returns:
ActionEvents

getActions

public Actions getActions()
Returns the value of field 'actions'. The field 'actions' has the following description: A collection of actions

Returns:
Actions

getAutoEvents

public AutoEvents getAutoEvents()
Returns the value of field 'autoEvents'.

Returns:
AutoEvents

getAutomations

public Automations getAutomations()
Returns the value of field 'automations'.

Returns:
Automations

getPeriod

public int getPeriod()
Returns the value of field 'period'. The field 'period' has the following description: how often to vacuum the database in seconds

Returns:
int

getStatement

public Statement getStatement(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getStatement

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

getStatement

public Statement[] getStatement()
Method getStatement

Returns:
Statement

getStatementCollection

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

Returns:
ArrayList

getStatementCount

public int getStatementCount()
Method getStatementCount

Returns:
int

getTriggers

public Triggers getTriggers()
Returns the value of field 'triggers'. The field 'triggers' has the following description: A collection of triggers

Returns:
Triggers

hasPeriod

public boolean hasPeriod()
Method hasPeriod

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

removeStatement

public boolean removeStatement(Statement vStatement)
Method removeStatement

Parameters:
vStatement -
Returns:
boolean

setActionEvents

public void setActionEvents(ActionEvents actionEvents)
Sets the value of field 'actionEvents'.

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

setActions

public void setActions(Actions actions)
Sets the value of field 'actions'. The field 'actions' has the following description: A collection of actions

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

setAutoEvents

public void setAutoEvents(AutoEvents autoEvents)
Sets the value of field 'autoEvents'.

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

setAutomations

public void setAutomations(Automations automations)
Sets the value of field 'automations'.

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

setPeriod

public void setPeriod(int period)
Sets the value of field 'period'. The field 'period' has the following description: how often to vacuum the database in seconds

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

setStatement

public void setStatement(int index,
                         Statement vStatement)
                  throws java.lang.IndexOutOfBoundsException
Method setStatement

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

setStatement

public void setStatement(Statement[] statementArray)
Method setStatement

Parameters:
statementArray -

setStatement

public void setStatement(java.util.ArrayList statementCollection)
Method setStatement Sets the value of 'statement' by copying the given ArrayList.

Parameters:
statementCollection - the Vector to copy.

setStatementCollection

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

Parameters:
statementCollection - the ArrayList to copy.

setTriggers

public void setTriggers(Triggers triggers)
Sets the value of field 'triggers'. The field 'triggers' has the following description: A collection of triggers

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

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.