Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbossmx.cluster.watchdog.mbean.watchdog
Class CallScriptCorrectiveAction  view CallScriptCorrectiveAction download CallScriptCorrectiveAction.java

java.lang.Object
  extended byorg.jbossmx.cluster.watchdog.mbean.watchdog.BaseCorrectiveAction
      extended byorg.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 InvokeMethodCorrectiveActions
(package private)  boolean m_overidesRestartAgentCorrectiveAction
          Flag indicating whether this CorrectiveAction overides RestartAgentCorrectiveActions
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 InvokeMethodCorrectiveActions
 boolean getOveridesRestartAgentCorrectiveAction()
          Returns whether this CorrectiveAction overides RestartAgentCorrectiveActions
 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 InvokeMethodCorrectiveActions


m_overidesRestartAgentCorrectiveAction

boolean m_overidesRestartAgentCorrectiveAction
Flag indicating whether this CorrectiveAction overides RestartAgentCorrectiveActions

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:
applyImpl in class BaseCorrectiveAction

isOverridenBy

public boolean isOverridenBy(CorrectiveAction correctiveAction)
Returns true if correctiveAction overides this CorrectiveAction


getOveridesInvokeMethodCorrectiveAction

public boolean getOveridesInvokeMethodCorrectiveAction()
Returns whether this CorrectiveAction overides InvokeMethodCorrectiveActions


getOveridesRestartAgentCorrectiveAction

public boolean getOveridesRestartAgentCorrectiveAction()
Returns whether this CorrectiveAction overides RestartAgentCorrectiveActions