|
|||||||||
| Home >> All >> org >> jbossmx >> cluster >> watchdog >> mbean >> [ watchdog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jbossmx.cluster.watchdog.mbean.watchdog
Class CallScriptCorrectiveAction

java.lang.Objectorg.jbossmx.cluster.watchdog.mbean.watchdog.BaseCorrectiveAction
org.jbossmx.cluster.watchdog.mbean.watchdog.CallScriptCorrectiveAction
- All Implemented Interfaces:
- java.lang.Cloneable, CorrectiveAction
- public class CallScriptCorrectiveAction
- extends BaseCorrectiveAction
CorrectiveAction for calling scripts and external programs
| Field Summary | |
private long |
m_delayTime
The amount of time between checks to see if the script / external program has finished |
(package private) boolean |
m_overidesInvokeMethodCorrectiveAction
Flag indicating whether this CorrectiveAction overides InvokeMethodCorrectiveAction s |
(package private) boolean |
m_overidesRestartAgentCorrectiveAction
Flag indicating whether this CorrectiveAction overides RestartAgentCorrectiveAction s |
private java.lang.String |
m_scriptName
The script / external program to call |
private long |
m_timeout
The amount of time in milliseconds to wait for the script / external program to finish |
| Fields inherited from class org.jbossmx.cluster.watchdog.mbean.watchdog.BaseCorrectiveAction |
|
| Constructor Summary | |
CallScriptCorrectiveAction(java.lang.String scriptName,
long timeout)
Constructor for CallScriptCorrectiveAction |
|
CallScriptCorrectiveAction(java.lang.String scriptName,
long timeout,
boolean overidesInvokeMethodCorrectiveAction,
boolean overidesRestartAgentCorrectiveAction)
Constructor for CallScriptCorrectiveAction |
|
| Method Summary | |
protected boolean |
applyImpl()
Apply this CorrectiveAction, i.e. calls a script / external program. |
boolean |
getOveridesInvokeMethodCorrectiveAction()
Returns whether this CorrectiveAction overides InvokeMethodCorrectiveAction s |
boolean |
getOveridesRestartAgentCorrectiveAction()
Returns whether this CorrectiveAction overides RestartAgentCorrectiveAction s |
boolean |
isOverridenBy(CorrectiveAction correctiveAction)
Returns true if correctiveAction overides this CorrectiveAction |
| Methods inherited from class org.jbossmx.cluster.watchdog.mbean.watchdog.BaseCorrectiveAction |
apply, canApply, clone, getCorrectiveActionContext, getNumberOfTimesToApply, isOverridenBy, setCorrectiveActionContext, setNumberOfTimesToApply |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
m_scriptName
private java.lang.String m_scriptName
- The script / external program to call
m_timeout
private long m_timeout
- The amount of time in milliseconds to wait for the script / external program to finish
m_delayTime
private long m_delayTime
- The amount of time between checks to see if the script / external program has finished
m_overidesInvokeMethodCorrectiveAction
boolean m_overidesInvokeMethodCorrectiveAction
- Flag indicating whether this CorrectiveAction overides
InvokeMethodCorrectiveAction
s
m_overidesRestartAgentCorrectiveAction
boolean m_overidesRestartAgentCorrectiveAction
- Flag indicating whether this CorrectiveAction overides
RestartAgentCorrectiveAction
s
| Constructor Detail |
CallScriptCorrectiveAction
public CallScriptCorrectiveAction(java.lang.String scriptName, long timeout)
- Constructor for CallScriptCorrectiveAction
CallScriptCorrectiveAction
public CallScriptCorrectiveAction(java.lang.String scriptName, long timeout, boolean overidesInvokeMethodCorrectiveAction, boolean overidesRestartAgentCorrectiveAction)
- Constructor for CallScriptCorrectiveAction
| Method Detail |
applyImpl
protected boolean applyImpl()
throws java.lang.Exception
- Apply this CorrectiveAction, i.e. calls a script / external program.
- Specified by:
applyImplin classBaseCorrectiveAction
isOverridenBy
public boolean isOverridenBy(CorrectiveAction correctiveAction)
- Returns true if
correctiveActionoverides this CorrectiveAction
getOveridesInvokeMethodCorrectiveAction
public boolean getOveridesInvokeMethodCorrectiveAction()
- Returns whether this CorrectiveAction overides
InvokeMethodCorrectiveAction
s
getOveridesRestartAgentCorrectiveAction
public boolean getOveridesRestartAgentCorrectiveAction()
- Returns whether this CorrectiveAction overides
RestartAgentCorrectiveAction
s
|
|||||||||
| Home >> All >> org >> jbossmx >> cluster >> watchdog >> mbean >> [ watchdog overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC