Package org.oddjob
Interface Stateful
- All Known Subinterfaces:
LoosingOutcome,TaskView
- All Known Implementing Classes:
AndState,AntJob,ArchiveBrowserJob,ArchiveJob,BaseComponent,BasePrimary,BaseWrapper,BasicBusService,BuildOddball,CascadeJob,CascadeJobDeprecated,ChooseFile,ClientBase,ConfirmationJob,ConstStateful,ConsumerWrapper,DependsJob,EqualsState,EventJobBase,EventServiceBase,EventStateHandler,EventWatchComponent,ExecBase,ExecJob,FlagState,ForEachJob,ForEvents,GrabJob,IfJob,InputJob,InvokeJob,JavaJob,JMXClientJob,JMXServiceJob,JobStateHandler,JobTaskView,JobWrapper,JoinJob,ListSource,MirrorState,MultiExplorerLauncher,Oddjob,Oddjob.OddjobRoot,OddjobExplorer,OddjobPanel,OrState,ParallelJob,ParentStateHandler,PropertiesJob,PropertiesJobBase,RepeatJob,ResetJob,Resets,Retry,RMIRegistryJob,RunJob,ScheduleBase,ScriptJob,SequentialJob,SerializableJob,ServicesJob,ServiceStateHandler,ServiceWrapper,SetJob,SimpleJob,SimpleService,SimultaneousStructural,SplitDestinations,SshSequenceJob,StartJob,StateExpressionJob,StateHandler,StateReflector,StopJob,StreamWatcher,StructuralJob,StructuralStateHelper,SwitchJob,TaskExecutionService,TaskExecutorHandlerFactory.TaskViewAdaptor,TaskRequest,Timer,TimerBase,TimerStateAdapter,TimerStateHandler,Trigger,Trigger,VariablesJob,WaitJob,WebClientJob,When
public interface Stateful
A Stateful job implements 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
Modifier and TypeMethodDescriptionvoidaddStateListener(StateListener listener) Add a job state listener.Get the last state event.voidremoveStateListener(StateListener listener) Remove a job state listener.
-
Method Details
-
addStateListener
Add a job state listener.- Parameters:
listener- The listener.- Throws:
JobDestroyedException
-
removeStateListener
Remove a job state listener.- Parameters:
listener- The listener.
-
lastStateEvent
StateEvent lastStateEvent()Get the last state event.- Returns:
- The last State Event
-