Package org.oddjob.state
Class StateReflector
- All Implemented Interfaces:
Serializable,Runnable,ArooaContextAware,ArooaSessionAware,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful,Stoppable,Structural
Base class for Jobs that are designed purely to reflect the state of
their child jobs.
- Author:
- rob
- See Also:
-
Field Summary
Fields inherited from class org.oddjob.framework.extend.StructuralJob
childHelper, destroy, stop, structuralState -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.oddjob.framework.extend.SimultaneousStructural
execute, getExecutorService, onStop, setExecutorService, setJobs, startChildStateReflectorMethods inherited from class org.oddjob.framework.extend.StructuralJob
addStructuralListener, fireDestroyedState, force, getInitialStateOp, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, postStop, removeStructuralListener, run, softReset, stateHandler, stopChildStateReflector, waitForChildrenOnStopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Constructor Details
-
StateReflector
public StateReflector()
-
-
Method Details
-
stop
Description copied from class:StructuralJobImplementation for a typical stop.This stop implementation doesn't check that the job is executing as stop messages must cascade down the hierarchy to manually started jobs.
- Specified by:
stopin interfaceStoppable- Overrides:
stopin classStructuralJob<Object>- Throws:
FailedToStopException
-
isJoin
public boolean isJoin()Description copied from class:SimultaneousStructuralShould execution wait for all jobs to be executed before returning to calling code.This property is intended to be overridden by sub classes that wish to give that choice to users.
- Overrides:
isJoinin classSimultaneousStructural- Returns:
- true for execution to wait for children. False for completion to be asynchronous.
-