org.oddjob.state
Class AbstractJobStateListener

java.lang.Object
  extended by org.oddjob.state.AbstractJobStateListener
All Implemented Interfaces:
JobStateListener

public abstract class AbstractJobStateListener
extends Object
implements JobStateListener

An implementation of a JobStateListener designer to be overriden.

Author:
Rob Gordon

Constructor Summary
AbstractJobStateListener()
           
 
Method Summary
 void jobStateChange(JobStateEvent event)
          This is the catch all method that all other methods call if they haven't been overridden.
protected  void jobStateComplete(Stateful source, Date time)
           
protected  void jobStateDestroyed(Stateful source, Date time)
           
protected  void jobStateException(Stateful source, Date time, Throwable throwable)
           
protected  void jobStateExecuting(Stateful source, Date time)
           
protected  void jobStateNotComplete(Stateful source, Date time)
           
protected  void jobStateReady(Stateful source, Date time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJobStateListener

public AbstractJobStateListener()
Method Detail

jobStateChange

public final void jobStateChange(JobStateEvent event)
This is the catch all method that all other methods call if they haven't been overridden.

Specified by:
jobStateChange in interface JobStateListener
Parameters:
event - The state event.

jobStateReady

protected void jobStateReady(Stateful source,
                             Date time)

jobStateExecuting

protected void jobStateExecuting(Stateful source,
                                 Date time)

jobStateComplete

protected void jobStateComplete(Stateful source,
                                Date time)

jobStateNotComplete

protected void jobStateNotComplete(Stateful source,
                                   Date time)

jobStateException

protected void jobStateException(Stateful source,
                                 Date time,
                                 Throwable throwable)

jobStateDestroyed

protected void jobStateDestroyed(Stateful source,
                                 Date time)