org.oddjob.state
Class StateMemory

java.lang.Object
  extended by 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.

Constructor Summary
StateMemory()
           
 
Method Summary
 State getJobState()
           
 Throwable getThrowable()
           
 void jobStateChange(StateEvent event)
          Triggered when the job state changes.
 void run(Runnable job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMemory

public StateMemory()
Method Detail

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)