public class Resets extends StructuralJob<java.lang.Object>
Execute and Stop actions are cascaded as normal to the child job.
See also the ResetJob job.
EqualsState example. The resets are
required because retry only sends a soft reset on retry
and it must be hardened to reset the ExistsJob.
childHelper, destroy, stop, structuralState| Constructor and Description |
|---|
Resets() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Execute this job.
|
protected StateOperator |
getInitialStateOp()
Subclasses must provide the
StateOperator that will decide
how to evaluate the children's state. |
boolean |
hardReset()
Perform a hard reset on the job.
|
boolean |
isHarden() |
boolean |
isSoften() |
void |
setHarden(boolean harden) |
void |
setJob(java.lang.Object job) |
void |
setSoften(boolean soften) |
boolean |
softReset()
Perform a soft reset on the job.
|
addStructuralListener, fireDestroyedState, force, getStateChanger, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, onStop, 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, waitaddStateListener, lastStateEvent, removeStateListenerprotected 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.Throwable
StructuralJobexecute in class StructuralJob<java.lang.Object>java.lang.Exception - If the unexpected occurs.java.lang.Throwablepublic boolean isHarden()
public void setHarden(boolean harden)
public boolean isSoften()
public void setSoften(boolean soften)
public void setJob(java.lang.Object job)
Property: job
Description: The job to pass resets on to.
Required: Yes.
public boolean hardReset()
StructuralJobhardReset in interface ResettablehardReset in class StructuralJob<java.lang.Object>public boolean softReset()
StructuralJobsoftReset in interface ResettablesoftReset in class StructuralJob<java.lang.Object>