|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.scriptd.ScriptdConfiguration
public class ScriptdConfiguration
Top-level element for the scriptd-configuration.xml configuration file.
| Constructor Summary | |
|---|---|
ScriptdConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addEngine(Engine vEngine)
|
void |
addEngine(int index,
Engine vEngine)
|
void |
addEventScript(EventScript vEventScript)
|
void |
addEventScript(int index,
EventScript vEventScript)
|
void |
addReloadScript(int index,
ReloadScript vReloadScript)
|
void |
addReloadScript(ReloadScript vReloadScript)
|
void |
addStartScript(int index,
StartScript vStartScript)
|
void |
addStartScript(StartScript vStartScript)
|
void |
addStopScript(int index,
StopScript vStopScript)
|
void |
addStopScript(StopScript vStopScript)
|
Enumeration<Engine> |
enumerateEngine()
Method enumerateEngine. |
Enumeration<EventScript> |
enumerateEventScript()
Method enumerateEventScript. |
Enumeration<ReloadScript> |
enumerateReloadScript()
Method enumerateReloadScript. |
Enumeration<StartScript> |
enumerateStartScript()
Method enumerateStartScript. |
Enumeration<StopScript> |
enumerateStopScript()
Method enumerateStopScript. |
Engine[] |
getEngine()
Method getEngine.Returns the contents of the collection in an Array. |
Engine |
getEngine(int index)
Method getEngine. |
List<Engine> |
getEngineCollection()
Method getEngineCollection.Returns a reference to '_engineList'. |
int |
getEngineCount()
Method getEngineCount. |
EventScript[] |
getEventScript()
Method getEventScript.Returns the contents of the collection in an Array. |
EventScript |
getEventScript(int index)
Method getEventScript. |
List<EventScript> |
getEventScriptCollection()
Method getEventScriptCollection.Returns a reference to '_eventScriptList'. |
int |
getEventScriptCount()
Method getEventScriptCount. |
ReloadScript[] |
getReloadScript()
Method getReloadScript.Returns the contents of the collection in an Array. |
ReloadScript |
getReloadScript(int index)
Method getReloadScript. |
List<ReloadScript> |
getReloadScriptCollection()
Method getReloadScriptCollection.Returns a reference to '_reloadScriptList'. |
int |
getReloadScriptCount()
Method getReloadScriptCount. |
StartScript[] |
getStartScript()
Method getStartScript.Returns the contents of the collection in an Array. |
StartScript |
getStartScript(int index)
Method getStartScript. |
List<StartScript> |
getStartScriptCollection()
Method getStartScriptCollection.Returns a reference to '_startScriptList'. |
int |
getStartScriptCount()
Method getStartScriptCount. |
StopScript[] |
getStopScript()
Method getStopScript.Returns the contents of the collection in an Array. |
StopScript |
getStopScript(int index)
Method getStopScript. |
List<StopScript> |
getStopScriptCollection()
Method getStopScriptCollection.Returns a reference to '_stopScriptList'. |
int |
getStopScriptCount()
Method getStopScriptCount. |
boolean |
isValid()
Method isValid. |
Iterator<Engine> |
iterateEngine()
Method iterateEngine. |
Iterator<EventScript> |
iterateEventScript()
Method iterateEventScript. |
Iterator<ReloadScript> |
iterateReloadScript()
Method iterateReloadScript. |
Iterator<StartScript> |
iterateStartScript()
Method iterateStartScript. |
Iterator<StopScript> |
iterateStopScript()
Method iterateStopScript. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllEngine()
|
void |
removeAllEventScript()
|
void |
removeAllReloadScript()
|
void |
removeAllStartScript()
|
void |
removeAllStopScript()
|
boolean |
removeEngine(Engine vEngine)
Method removeEngine. |
Engine |
removeEngineAt(int index)
Method removeEngineAt. |
boolean |
removeEventScript(EventScript vEventScript)
Method removeEventScript. |
EventScript |
removeEventScriptAt(int index)
Method removeEventScriptAt. |
boolean |
removeReloadScript(ReloadScript vReloadScript)
Method removeReloadScript. |
ReloadScript |
removeReloadScriptAt(int index)
Method removeReloadScriptAt. |
boolean |
removeStartScript(StartScript vStartScript)
Method removeStartScript. |
StartScript |
removeStartScriptAt(int index)
Method removeStartScriptAt. |
boolean |
removeStopScript(StopScript vStopScript)
Method removeStopScript. |
StopScript |
removeStopScriptAt(int index)
Method removeStopScriptAt. |
void |
setEngine(Engine[] vEngineArray)
|
void |
setEngine(int index,
Engine vEngine)
|
void |
setEngine(List<Engine> vEngineList)
Sets the value of '_engineList' by copying the given Vector. |
void |
setEngineCollection(List<Engine> engineList)
Deprecated. |
void |
setEventScript(EventScript[] vEventScriptArray)
|
void |
setEventScript(int index,
EventScript vEventScript)
|
void |
setEventScript(List<EventScript> vEventScriptList)
Sets the value of '_eventScriptList' by copying the given Vector. |
void |
setEventScriptCollection(List<EventScript> eventScriptList)
Deprecated. |
void |
setReloadScript(int index,
ReloadScript vReloadScript)
|
void |
setReloadScript(List<ReloadScript> vReloadScriptList)
Sets the value of '_reloadScriptList' by copying the given Vector. |
void |
setReloadScript(ReloadScript[] vReloadScriptArray)
|
void |
setReloadScriptCollection(List<ReloadScript> reloadScriptList)
Deprecated. |
void |
setStartScript(int index,
StartScript vStartScript)
|
void |
setStartScript(List<StartScript> vStartScriptList)
Sets the value of '_startScriptList' by copying the given Vector. |
void |
setStartScript(StartScript[] vStartScriptArray)
|
void |
setStartScriptCollection(List<StartScript> startScriptList)
Deprecated. |
void |
setStopScript(int index,
StopScript vStopScript)
|
void |
setStopScript(List<StopScript> vStopScriptList)
Sets the value of '_stopScriptList' by copying the given Vector. |
void |
setStopScript(StopScript[] vStopScriptArray)
|
void |
setStopScriptCollection(List<StopScript> stopScriptList)
Deprecated. |
static ScriptdConfiguration |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptdConfiguration()
| Method Detail |
|---|
public void addEngine(Engine vEngine)
throws IndexOutOfBoundsException
vEngine -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEngine(int index,
Engine vEngine)
throws IndexOutOfBoundsException
index - vEngine -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEventScript(EventScript vEventScript)
throws IndexOutOfBoundsException
vEventScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEventScript(int index,
EventScript vEventScript)
throws IndexOutOfBoundsException
index - vEventScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addReloadScript(ReloadScript vReloadScript)
throws IndexOutOfBoundsException
vReloadScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addReloadScript(int index,
ReloadScript vReloadScript)
throws IndexOutOfBoundsException
index - vReloadScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addStartScript(StartScript vStartScript)
throws IndexOutOfBoundsException
vStartScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addStartScript(int index,
StartScript vStartScript)
throws IndexOutOfBoundsException
index - vStartScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addStopScript(StopScript vStopScript)
throws IndexOutOfBoundsException
vStopScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addStopScript(int index,
StopScript vStopScript)
throws IndexOutOfBoundsException
index - vStopScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Engine> enumerateEngine()
public Enumeration<EventScript> enumerateEventScript()
public Enumeration<ReloadScript> enumerateReloadScript()
public Enumeration<StartScript> enumerateStartScript()
public Enumeration<StopScript> enumerateStopScript()
public Engine getEngine(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Engine[] getEngine()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Engine> getEngineCollection()
public int getEngineCount()
public EventScript getEventScript(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic EventScript[] getEventScript()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<EventScript> getEventScriptCollection()
public int getEventScriptCount()
public ReloadScript getReloadScript(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ReloadScript[] getReloadScript()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<ReloadScript> getReloadScriptCollection()
public int getReloadScriptCount()
public StartScript getStartScript(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic StartScript[] getStartScript()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<StartScript> getStartScriptCollection()
public int getStartScriptCount()
public StopScript getStopScript(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic StopScript[] getStopScript()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<StopScript> getStopScriptCollection()
public int getStopScriptCount()
public boolean isValid()
public Iterator<Engine> iterateEngine()
public Iterator<EventScript> iterateEventScript()
public Iterator<ReloadScript> iterateReloadScript()
public Iterator<StartScript> iterateStartScript()
public Iterator<StopScript> iterateStopScript()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllEngine()
public void removeAllEventScript()
public void removeAllReloadScript()
public void removeAllStartScript()
public void removeAllStopScript()
public boolean removeEngine(Engine vEngine)
vEngine -
public Engine removeEngineAt(int index)
index -
public boolean removeEventScript(EventScript vEventScript)
vEventScript -
public EventScript removeEventScriptAt(int index)
index -
public boolean removeReloadScript(ReloadScript vReloadScript)
vReloadScript -
public ReloadScript removeReloadScriptAt(int index)
index -
public boolean removeStartScript(StartScript vStartScript)
vStartScript -
public StartScript removeStartScriptAt(int index)
index -
public boolean removeStopScript(StopScript vStopScript)
vStopScript -
public StopScript removeStopScriptAt(int index)
index -
public void setEngine(int index,
Engine vEngine)
throws IndexOutOfBoundsException
index - vEngine -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEngine(Engine[] vEngineArray)
vEngineArray - public void setEngine(List<Engine> vEngineList)
vEngineList - the Vector to copy.public void setEngineCollection(List<Engine> engineList)
engineList - the Vector to set.
public void setEventScript(int index,
EventScript vEventScript)
throws IndexOutOfBoundsException
index - vEventScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEventScript(EventScript[] vEventScriptArray)
vEventScriptArray - public void setEventScript(List<EventScript> vEventScriptList)
vEventScriptList - the Vector to copy.public void setEventScriptCollection(List<EventScript> eventScriptList)
eventScriptList - the Vector to set.
public void setReloadScript(int index,
ReloadScript vReloadScript)
throws IndexOutOfBoundsException
index - vReloadScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setReloadScript(ReloadScript[] vReloadScriptArray)
vReloadScriptArray - public void setReloadScript(List<ReloadScript> vReloadScriptList)
vReloadScriptList - the Vector to copy.public void setReloadScriptCollection(List<ReloadScript> reloadScriptList)
reloadScriptList - the Vector to set.
public void setStartScript(int index,
StartScript vStartScript)
throws IndexOutOfBoundsException
index - vStartScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setStartScript(StartScript[] vStartScriptArray)
vStartScriptArray - public void setStartScript(List<StartScript> vStartScriptList)
vStartScriptList - the Vector to copy.public void setStartScriptCollection(List<StartScript> startScriptList)
startScriptList - the Vector to set.
public void setStopScript(int index,
StopScript vStopScript)
throws IndexOutOfBoundsException
index - vStopScript -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setStopScript(StopScript[] vStopScriptArray)
vStopScriptArray - public void setStopScript(List<StopScript> vStopScriptList)
vStopScriptList - the Vector to copy.public void setStopScriptCollection(List<StopScript> stopScriptList)
stopScriptList - the Vector to set.
public static ScriptdConfiguration unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||