org.oddjob.state
Interface StateChanger<S extends State>

All Known Implementing Classes:
BaseStateChanger, JobStateChanger, OrderedStateChanger, ParentStateChanger, ServiceStateChanger

public interface StateChanger<S extends State>

Implementations provide the ability to change something's JobState.

Author:
rob

Method Summary
 void setState(S state)
          Set the state to given state.
 void setState(S state, Date date)
          Set the state to the given state with the given event time.
 void setStateException(Throwable t)
          Set the state to an EXCEPTION state.
 void setStateException(Throwable t, Date date)
          Set the state to an EXCEPTION state with the given event time.
 

Method Detail

setState

void setState(S state)
              throws JobDestroyedException
Set the state to given state.

Parameters:
state -
Throws:
JobDestroyedException

setState

void setState(S state,
              Date date)
              throws JobDestroyedException
Set the state to the given state with the given event time.

Parameters:
state -
date -
Throws:
JobDestroyedException

setStateException

void setStateException(Throwable t)
                       throws JobDestroyedException
Set the state to an EXCEPTION state.

Parameters:
t - The Exception.
Throws:
JobDestroyedException

setStateException

void setStateException(Throwable t,
                       Date date)
                       throws JobDestroyedException
Set the state to an EXCEPTION state with the given event time.

Parameters:
t - The Exception.
Throws:
JobDestroyedException