public class MirrorState extends BasePrimary implements Runnable, Stoppable, Resetable
Constructor and Description |
---|
MirrorState() |
Modifier and Type | Method and Description |
---|---|
protected void |
fireDestroyedState()
Internal method to fire state.
|
protected StateChanger<JobState> |
getStateChanger() |
boolean |
hardReset()
Perform a hard reset.
|
protected IconHelper |
iconHelper()
Subclasses must provide a
IconHelper . |
void |
onDestroy()
Subclasses override this method to clear up resources.
|
void |
run() |
void |
setJob(Stateful job) |
boolean |
softReset()
Perform a soft reset.
|
protected JobStateHandler |
stateHandler()
Subclasses must provide a
StateHandler . |
void |
stop()
Stop executing.
|
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
protected JobStateHandler stateHandler()
BaseComponent
StateHandler
.stateHandler
in class BaseComponent
protected IconHelper iconHelper()
BaseComponent
IconHelper
.iconHelper
in class BaseComponent
protected StateChanger<JobState> getStateChanger()
public void setJob(Stateful job)
Property: job
Description: A reference to the job to mirror.
Required: Yes.
public void stop()
Stoppable
public boolean hardReset()
Resetable
public boolean softReset()
Resetable
public void onDestroy()
BaseComponent
onDestroy
in class BaseComponent
protected void fireDestroyedState()
fireDestroyedState
in class BaseComponent