Package org.oddjob.state
Enum Class ParentState
- All Implemented Interfaces:
Serializable,Comparable<ParentState>,Constable,State
Encapsulate the allowed states for a
Structural.- Author:
- Rob Gordon
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that child jobs are active.Indicates job has completed.The job has been destroyed.Indicates an exception has occurred.Indicates the job is executing, which normally means it's in the process of executing it's children.Indicates the job is not complete.The job is ready to be executing.Indicates that child jobs are stoppable but done. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParentStateReturns the enum constant of this class with the specified name.static ParentState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.oddjob.state.State
isComplete, isDestroyed, isException, isExecuting, isIncomplete, isReady, isStoppable
-
Enum Constant Details
-
READY
The job is ready to be executing. The Oddjob Framework will only execute a job which is in this state. -
EXECUTING
Indicates the job is executing, which normally means it's in the process of executing it's children. -
ACTIVE
Indicates that child jobs are active. This will be the case when the execution thread has passed on but a child job is still active or executing. -
STARTED
Indicates that child jobs are stoppable but done. This will be the case for service forServiceStates. This state differs fromACTIVEin that it will cause the next sibling to execute in aCascadeJob. -
INCOMPLETE
Indicates the job is not complete. This will typically be the case when one or more child jobs are INCOMPLETE, but this depends on the nature of the Structural job and theStateOperatorit uses. -
COMPLETE
Indicates job has completed. The will typically be the case when all child jobs have completed, but this depends on the nature of the Structural job and theStateOperatorit uses. -
EXCEPTION
Indicates an exception has occurred. This will typically be the case when one of a jobs child jobs is in an EXCEPTION state, but this depends on the nature of the Structural job and theStateOperatorit uses. -
DESTROYED
The job has been destroyed. It can no longer be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-