org.oddjob.state
Class StateReflector

java.lang.Object
  extended by org.oddjob.framework.BaseComponent
      extended by org.oddjob.framework.BasePrimary
          extended by org.oddjob.framework.StructuralJob<Object>
              extended by org.oddjob.framework.SimultaneousStructural
                  extended by org.oddjob.state.StateReflector
All Implemented Interfaces:
Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resetable, Stateful, Stoppable, Structural
Direct Known Subclasses:
AndState, OrState

public abstract class StateReflector
extends SimultaneousStructural

Base class for Jobs that are designed purely to reflect the state of their child jobs.

See Also:
Serialized Form
Author:
rob

Field Summary
 
Fields inherited from class org.oddjob.framework.StructuralJob
childHelper, childStateReflector, stateHandler, stop, structuralState
 
Fields inherited from class org.oddjob.framework.BaseComponent
iconHelper
 
Constructor Summary
StateReflector()
           
 
Method Summary
 boolean isJoin()
           
 void stop()
          Implementation for a typical stop.
 
Methods inherited from class org.oddjob.framework.SimultaneousStructural
execute, onStop, setExecutorService, setJobs, startChildStateReflector
 
Methods inherited from class org.oddjob.framework.StructuralJob
addStructuralListener, fireDestroyedState, force, getInitialStateOp, getStateChanger, hardReset, isStop, onDestroy, onReset, removeStructuralListener, run, softReset, stateHandler
 
Methods inherited from class org.oddjob.framework.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toString
 
Methods inherited from class org.oddjob.framework.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
 

Constructor Detail

StateReflector

public StateReflector()
Method Detail

stop

public void stop()
          throws FailedToStopException
Description copied from class: StructuralJob
Implementation 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:
stop in interface Stoppable
Overrides:
stop in class StructuralJob<Object>
Throws:
FailedToStopException

isJoin

public boolean isJoin()
Overrides:
isJoin in class SimultaneousStructural