org.opennms.netmgt.config.scriptd
Class ScriptdConfiguration

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

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

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

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

Constructor Summary
ScriptdConfiguration()
           
 
Method Summary
 void addEngine(Engine vEngine)
          Method addEngine
 void addEngine(int index, Engine vEngine)
          Method addEngine
 void addEventScript(EventScript vEventScript)
          Method addEventScript
 void addEventScript(int index, EventScript vEventScript)
          Method addEventScript
 void addReloadScript(int index, ReloadScript vReloadScript)
          Method addReloadScript
 void addReloadScript(ReloadScript vReloadScript)
          Method addReloadScript
 void addStartScript(int index, StartScript vStartScript)
          Method addStartScript
 void addStartScript(StartScript vStartScript)
          Method addStartScript
 void addStopScript(int index, StopScript vStopScript)
          Method addStopScript
 void addStopScript(StopScript vStopScript)
          Method addStopScript
 void clearEngine()
          Method clearEngine
 void clearEventScript()
          Method clearEventScript
 void clearReloadScript()
          Method clearReloadScript
 void clearStartScript()
          Method clearStartScript
 void clearStopScript()
          Method clearStopScript
 java.util.Enumeration enumerateEngine()
          Method enumerateEngine
 java.util.Enumeration enumerateEventScript()
          Method enumerateEventScript
 java.util.Enumeration enumerateReloadScript()
          Method enumerateReloadScript
 java.util.Enumeration enumerateStartScript()
          Method enumerateStartScript
 java.util.Enumeration enumerateStopScript()
          Method enumerateStopScript
 Engine[] getEngine()
          Method getEngine
 Engine getEngine(int index)
          Method getEngine
 java.util.ArrayList getEngineCollection()
          Method getEngineCollection Returns a reference to 'engine'.
 int getEngineCount()
          Method getEngineCount
 EventScript[] getEventScript()
          Method getEventScript
 EventScript getEventScript(int index)
          Method getEventScript
 java.util.ArrayList getEventScriptCollection()
          Method getEventScriptCollection Returns a reference to 'eventScript'.
 int getEventScriptCount()
          Method getEventScriptCount
 ReloadScript[] getReloadScript()
          Method getReloadScript
 ReloadScript getReloadScript(int index)
          Method getReloadScript
 java.util.ArrayList getReloadScriptCollection()
          Method getReloadScriptCollection Returns a reference to 'reloadScript'.
 int getReloadScriptCount()
          Method getReloadScriptCount
 StartScript[] getStartScript()
          Method getStartScript
 StartScript getStartScript(int index)
          Method getStartScript
 java.util.ArrayList getStartScriptCollection()
          Method getStartScriptCollection Returns a reference to 'startScript'.
 int getStartScriptCount()
          Method getStartScriptCount
 StopScript[] getStopScript()
          Method getStopScript
 StopScript getStopScript(int index)
          Method getStopScript
 java.util.ArrayList getStopScriptCollection()
          Method getStopScriptCollection Returns a reference to 'stopScript'.
 int getStopScriptCount()
          Method getStopScriptCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeEngine(Engine vEngine)
          Method removeEngine
 boolean removeEventScript(EventScript vEventScript)
          Method removeEventScript
 boolean removeReloadScript(ReloadScript vReloadScript)
          Method removeReloadScript
 boolean removeStartScript(StartScript vStartScript)
          Method removeStartScript
 boolean removeStopScript(StopScript vStopScript)
          Method removeStopScript
 void setEngine(java.util.ArrayList engineCollection)
          Method setEngine Sets the value of 'engine' by copying the given ArrayList.
 void setEngine(Engine[] engineArray)
          Method setEngine
 void setEngine(int index, Engine vEngine)
          Method setEngine
 void setEngineCollection(java.util.ArrayList engineCollection)
          Method setEngineCollection Sets the value of 'engine' by setting it to the given ArrayList.
 void setEventScript(java.util.ArrayList eventScriptCollection)
          Method setEventScript Sets the value of 'eventScript' by copying the given ArrayList.
 void setEventScript(EventScript[] eventScriptArray)
          Method setEventScript
 void setEventScript(int index, EventScript vEventScript)
          Method setEventScript
 void setEventScriptCollection(java.util.ArrayList eventScriptCollection)
          Method setEventScriptCollection Sets the value of 'eventScript' by setting it to the given ArrayList.
 void setReloadScript(java.util.ArrayList reloadScriptCollection)
          Method setReloadScript Sets the value of 'reloadScript' by copying the given ArrayList.
 void setReloadScript(int index, ReloadScript vReloadScript)
          Method setReloadScript
 void setReloadScript(ReloadScript[] reloadScriptArray)
          Method setReloadScript
 void setReloadScriptCollection(java.util.ArrayList reloadScriptCollection)
          Method setReloadScriptCollection Sets the value of 'reloadScript' by setting it to the given ArrayList.
 void setStartScript(java.util.ArrayList startScriptCollection)
          Method setStartScript Sets the value of 'startScript' by copying the given ArrayList.
 void setStartScript(int index, StartScript vStartScript)
          Method setStartScript
 void setStartScript(StartScript[] startScriptArray)
          Method setStartScript
 void setStartScriptCollection(java.util.ArrayList startScriptCollection)
          Method setStartScriptCollection Sets the value of 'startScript' by setting it to the given ArrayList.
 void setStopScript(java.util.ArrayList stopScriptCollection)
          Method setStopScript Sets the value of 'stopScript' by copying the given ArrayList.
 void setStopScript(int index, StopScript vStopScript)
          Method setStopScript
 void setStopScript(StopScript[] stopScriptArray)
          Method setStopScript
 void setStopScriptCollection(java.util.ArrayList stopScriptCollection)
          Method setStopScriptCollection Sets the value of 'stopScript' 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

ScriptdConfiguration

public ScriptdConfiguration()
Method Detail

addEngine

public void addEngine(Engine vEngine)
               throws java.lang.IndexOutOfBoundsException
Method addEngine

Parameters:
vEngine -
Throws:
java.lang.IndexOutOfBoundsException

addEngine

public void addEngine(int index,
                      Engine vEngine)
               throws java.lang.IndexOutOfBoundsException
Method addEngine

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

addEventScript

public void addEventScript(EventScript vEventScript)
                    throws java.lang.IndexOutOfBoundsException
Method addEventScript

Parameters:
vEventScript -
Throws:
java.lang.IndexOutOfBoundsException

addEventScript

public void addEventScript(int index,
                           EventScript vEventScript)
                    throws java.lang.IndexOutOfBoundsException
Method addEventScript

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

addReloadScript

public void addReloadScript(ReloadScript vReloadScript)
                     throws java.lang.IndexOutOfBoundsException
Method addReloadScript

Parameters:
vReloadScript -
Throws:
java.lang.IndexOutOfBoundsException

addReloadScript

public void addReloadScript(int index,
                            ReloadScript vReloadScript)
                     throws java.lang.IndexOutOfBoundsException
Method addReloadScript

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

addStartScript

public void addStartScript(StartScript vStartScript)
                    throws java.lang.IndexOutOfBoundsException
Method addStartScript

Parameters:
vStartScript -
Throws:
java.lang.IndexOutOfBoundsException

addStartScript

public void addStartScript(int index,
                           StartScript vStartScript)
                    throws java.lang.IndexOutOfBoundsException
Method addStartScript

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

addStopScript

public void addStopScript(StopScript vStopScript)
                   throws java.lang.IndexOutOfBoundsException
Method addStopScript

Parameters:
vStopScript -
Throws:
java.lang.IndexOutOfBoundsException

addStopScript

public void addStopScript(int index,
                          StopScript vStopScript)
                   throws java.lang.IndexOutOfBoundsException
Method addStopScript

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

clearEngine

public void clearEngine()
Method clearEngine


clearEventScript

public void clearEventScript()
Method clearEventScript


clearReloadScript

public void clearReloadScript()
Method clearReloadScript


clearStartScript

public void clearStartScript()
Method clearStartScript


clearStopScript

public void clearStopScript()
Method clearStopScript


enumerateEngine

public java.util.Enumeration enumerateEngine()
Method enumerateEngine

Returns:
Enumeration

enumerateEventScript

public java.util.Enumeration enumerateEventScript()
Method enumerateEventScript

Returns:
Enumeration

enumerateReloadScript

public java.util.Enumeration enumerateReloadScript()
Method enumerateReloadScript

Returns:
Enumeration

enumerateStartScript

public java.util.Enumeration enumerateStartScript()
Method enumerateStartScript

Returns:
Enumeration

enumerateStopScript

public java.util.Enumeration enumerateStopScript()
Method enumerateStopScript

Returns:
Enumeration

getEngine

public Engine getEngine(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getEngine

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

getEngine

public Engine[] getEngine()
Method getEngine

Returns:
Engine

getEngineCollection

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

Returns:
ArrayList

getEngineCount

public int getEngineCount()
Method getEngineCount

Returns:
int

getEventScript

public EventScript getEventScript(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getEventScript

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

getEventScript

public EventScript[] getEventScript()
Method getEventScript

Returns:
EventScript

getEventScriptCollection

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

Returns:
ArrayList

getEventScriptCount

public int getEventScriptCount()
Method getEventScriptCount

Returns:
int

getReloadScript

public ReloadScript getReloadScript(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getReloadScript

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

getReloadScript

public ReloadScript[] getReloadScript()
Method getReloadScript

Returns:
ReloadScript

getReloadScriptCollection

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

Returns:
ArrayList

getReloadScriptCount

public int getReloadScriptCount()
Method getReloadScriptCount

Returns:
int

getStartScript

public StartScript getStartScript(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getStartScript

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

getStartScript

public StartScript[] getStartScript()
Method getStartScript

Returns:
StartScript

getStartScriptCollection

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

Returns:
ArrayList

getStartScriptCount

public int getStartScriptCount()
Method getStartScriptCount

Returns:
int

getStopScript

public StopScript getStopScript(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getStopScript

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

getStopScript

public StopScript[] getStopScript()
Method getStopScript

Returns:
StopScript

getStopScriptCollection

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

Returns:
ArrayList

getStopScriptCount

public int getStopScriptCount()
Method getStopScriptCount

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

removeEngine

public boolean removeEngine(Engine vEngine)
Method removeEngine

Parameters:
vEngine -
Returns:
boolean

removeEventScript

public boolean removeEventScript(EventScript vEventScript)
Method removeEventScript

Parameters:
vEventScript -
Returns:
boolean

removeReloadScript

public boolean removeReloadScript(ReloadScript vReloadScript)
Method removeReloadScript

Parameters:
vReloadScript -
Returns:
boolean

removeStartScript

public boolean removeStartScript(StartScript vStartScript)
Method removeStartScript

Parameters:
vStartScript -
Returns:
boolean

removeStopScript

public boolean removeStopScript(StopScript vStopScript)
Method removeStopScript

Parameters:
vStopScript -
Returns:
boolean

setEngine

public void setEngine(int index,
                      Engine vEngine)
               throws java.lang.IndexOutOfBoundsException
Method setEngine

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

setEngine

public void setEngine(Engine[] engineArray)
Method setEngine

Parameters:
engineArray -

setEngine

public void setEngine(java.util.ArrayList engineCollection)
Method setEngine Sets the value of 'engine' by copying the given ArrayList.

Parameters:
engineCollection - the Vector to copy.

setEngineCollection

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

Parameters:
engineCollection - the ArrayList to copy.

setEventScript

public void setEventScript(int index,
                           EventScript vEventScript)
                    throws java.lang.IndexOutOfBoundsException
Method setEventScript

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

setEventScript

public void setEventScript(EventScript[] eventScriptArray)
Method setEventScript

Parameters:
eventScriptArray -

setEventScript

public void setEventScript(java.util.ArrayList eventScriptCollection)
Method setEventScript Sets the value of 'eventScript' by copying the given ArrayList.

Parameters:
eventScriptCollection - the Vector to copy.

setEventScriptCollection

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

Parameters:
eventScriptCollection - the ArrayList to copy.

setReloadScript

public void setReloadScript(int index,
                            ReloadScript vReloadScript)
                     throws java.lang.IndexOutOfBoundsException
Method setReloadScript

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

setReloadScript

public void setReloadScript(ReloadScript[] reloadScriptArray)
Method setReloadScript

Parameters:
reloadScriptArray -

setReloadScript

public void setReloadScript(java.util.ArrayList reloadScriptCollection)
Method setReloadScript Sets the value of 'reloadScript' by copying the given ArrayList.

Parameters:
reloadScriptCollection - the Vector to copy.

setReloadScriptCollection

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

Parameters:
reloadScriptCollection - the ArrayList to copy.

setStartScript

public void setStartScript(int index,
                           StartScript vStartScript)
                    throws java.lang.IndexOutOfBoundsException
Method setStartScript

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

setStartScript

public void setStartScript(StartScript[] startScriptArray)
Method setStartScript

Parameters:
startScriptArray -

setStartScript

public void setStartScript(java.util.ArrayList startScriptCollection)
Method setStartScript Sets the value of 'startScript' by copying the given ArrayList.

Parameters:
startScriptCollection - the Vector to copy.

setStartScriptCollection

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

Parameters:
startScriptCollection - the ArrayList to copy.

setStopScript

public void setStopScript(int index,
                          StopScript vStopScript)
                   throws java.lang.IndexOutOfBoundsException
Method setStopScript

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

setStopScript

public void setStopScript(StopScript[] stopScriptArray)
Method setStopScript

Parameters:
stopScriptArray -

setStopScript

public void setStopScript(java.util.ArrayList stopScriptCollection)
Method setStopScript Sets the value of 'stopScript' by copying the given ArrayList.

Parameters:
stopScriptCollection - the Vector to copy.

setStopScriptCollection

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

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