org.oddjob
Interface Stateful

All Known Subinterfaces:
LoosingOutcome
All Known Implementing Classes:
AndState, AntJob, ArchiveBrowserJob, ArchiveJob, BaseComponent, BasePrimary, BaseWrapper, CascadeJob, ChooseFile, ConfirmationJob, DependsJob, EqualsState, ExecJob, FlagState, ForEachJob, GrabJob, IfJob, JMXClientJob, JobStateHandler, JoinJob, MirrorState, Oddjob, Oddjob.OddjobRoot, OddjobExplorer, OrState, ParallelJob, PropertiesJob, RepeatJob, ResetJob, Resets, Retry, RMIRegistryJob, RunJob, RunnableWrapper, ScheduleBase, ScriptJob, SequentialJob, SerializableJob, ServiceWrapper, SetJob, SimpleJob, SimultaneousStructural, StateReflector, StopJob, StructuralJob, StructuralStateHelper, Timer, TimerBase, Trigger, VariablesJob, WaitJob

public interface Stateful

A stateful job implments this interface so that it's state can be discovered. State is used to control the flow of execution within Oddjob, as well as being a way of informing client applications of progress.

Author:
Rob Gordon

Method Summary
 void addJobStateListener(JobStateListener listener)
          Add a job state listener.
 JobStateEvent lastJobStateEvent()
          Get the last job state event.
 void removeJobStateListener(JobStateListener listener)
          Remove a job state listener.
 

Method Detail

addJobStateListener

void addJobStateListener(JobStateListener listener)
Add a job state listener.

Parameters:
listener - The listener.

removeJobStateListener

void removeJobStateListener(JobStateListener listener)
Remove a job state listener.

Parameters:
listener - The listener.

lastJobStateEvent

JobStateEvent lastJobStateEvent()
Get the last job state event.

Returns: