public class RunJob extends StructuralJob<java.lang.Object> implements Structural, Stoppable
This job reflects the state of the job being executed.
JMXClientJob job has an
example that uses run to run a job on a
remote server.childHelper, destroy, stop, structuralState| Constructor and Description |
|---|
RunJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStructuralListener(StructuralListener listener)
Add a listener.
|
protected void |
execute()
Execute this job.
|
protected StateOperator |
getInitialStateOp()
Subclasses must provide the
StateOperator that will decide
how to evaluate the children's state. |
java.lang.Object |
getJob()
Get the job.
|
ResetAction |
getReset() |
StateOperator |
getStateOperator()
Getter for State Operator.
|
boolean |
hardReset()
Perform a hard reset on the job.
|
boolean |
isJoin() |
boolean |
isShowJob() |
protected void |
onStop()
Allow sub classes to do something on stop.
|
void |
setJob(java.lang.Object node)
Set the stop node directly.
|
void |
setJoin(boolean join) |
void |
setReset(ResetAction reset) |
void |
setShowJob(boolean showJob) |
void |
setStateOperator(StateOperator stateOperator) |
boolean |
softReset()
Perform a soft reset on the job.
|
fireDestroyedState, force, getStateChanger, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, postStop, removeStructuralListener, run, startChildStateReflector, stateHandler, stop, stopChildStateReflector, waitForChildrenOnStopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremoveStructuralListeneraddStateListener, lastStateEvent, removeStateListenerpublic void setJob(java.lang.Object node)
node - The job.public java.lang.Object getJob()
public void setStateOperator(StateOperator stateOperator)
Property: stateOperator
Description: Set the way the children's state is evaluated and reflected by the parent. Values can be WORST, ACTIVE, or SERVICES.
Required: No, default is ACTIVE.
stateOperator - The state operator to be applied to children's
states to derive our state.public StateOperator getStateOperator()
protected StateOperator getInitialStateOp()
StructuralJobStateOperator that will decide
how to evaluate the children's state.getInitialStateOp in class StructuralJob<java.lang.Object>protected void execute()
throws java.lang.Exception
StructuralJobexecute in class StructuralJob<java.lang.Object>java.lang.Exception - If the unexpected occurs.public boolean softReset()
softReset in interface ResettablesoftReset in class StructuralJob<java.lang.Object>public boolean hardReset()
hardReset in interface ResettablehardReset in class StructuralJob<java.lang.Object>protected void onStop()
throws FailedToStopException
StructuralJobonStop in class StructuralJob<java.lang.Object>FailedToStopExceptionpublic void addStructuralListener(StructuralListener listener)
StructuralJobaddStructuralListener in interface StructuraladdStructuralListener in class StructuralJob<java.lang.Object>listener - The listener.public ResetAction getReset()
public void setReset(ResetAction reset)
public void setJoin(boolean join)
public boolean isJoin()
public void setShowJob(boolean showJob)
public boolean isShowJob()