|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface State
The state of a Stateful
job. Oddjob uses the set of
conditions of a state to decide what actions to allow and also
what state to reflect up the hierarchy.
Method Summary | |
---|---|
boolean |
isComplete()
Is a job or service complete? |
boolean |
isDestroyed()
The job is destroyed. |
boolean |
isDone()
Has the work of the job been done? A Job will be JobState.COMPLETE or a service ServiceState.STARTED
Used by CascadeJob to see if a jobs immediate sibling can
be executed. |
boolean |
isException()
Is a job in an exception state. |
boolean |
isIncomplete()
Is a job or service incomplete. |
boolean |
isReady()
Is a job ready to be executed. |
boolean |
isStoppable()
Can a job be stopped? This is a catch all for jobs that are active or executing. |
Method Detail |
---|
boolean isReady()
boolean isStoppable()
boolean isDone()
JobState.COMPLETE
or a service ServiceState.STARTED
Used by CascadeJob
to see if a jobs immediate sibling can
be executed.
boolean isComplete()
boolean isIncomplete()
boolean isException()
boolean isDestroyed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |