public class Resets extends StructuralJob<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, childStateReflector, 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(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, removeStructuralListener, run, startChildStateReflector, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
protected StateOperator getInitialStateOp()
StructuralJob
StateOperator
that will decide
how to evaluate the children's state.getInitialStateOp
in class StructuralJob<Object>
protected void execute() throws Throwable
StructuralJob
execute
in class StructuralJob<Object>
Exception
- If the unexpected occurs.Throwable
public boolean isHarden()
public void setHarden(boolean harden)
public boolean isSoften()
public void setSoften(boolean soften)
public void setJob(Object job)
Property: job
Description: The job to pass resets on to.
Required: Yes.
public boolean hardReset()
StructuralJob
hardReset
in interface Resetable
hardReset
in class StructuralJob<Object>
public boolean softReset()
StructuralJob
softReset
in interface Resetable
softReset
in class StructuralJob<Object>