org.oddjob.state
Class StateMemory
java.lang.Object
org.oddjob.state.StateMemory
- All Implemented Interfaces:
- StateListener
public class StateMemory
- extends Object
- implements StateListener
A wrapper for a job that holds the state of the job
after it's been executed.
- Author:
- Rob Gordon.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateMemory
public StateMemory()
jobStateChange
public void jobStateChange(StateEvent event)
- Description copied from interface:
StateListener
- Triggered when the job state changes.
- Specified by:
jobStateChange
in interface StateListener
- Parameters:
event
- The job state event.
getJobState
public State getJobState()
getThrowable
public Throwable getThrowable()
run
public void run(Runnable job)