|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JobState>
org.oddjob.state.JobState
public enum JobState
Encapsulate the allowed states for a job.
Enum Constant Summary | |
---|---|
COMPLETE
Indicates job has completed. |
|
DESTROYED
The job has been destroyed. |
|
EXCEPTION
Indicates an exception has occurred. |
|
EXECUTING
Indicates the job is executing. |
|
INCOMPLETE
Indicates the job is not complete. |
|
READY
Indicates the job is ready to be executing. |
Method Summary | |
---|---|
static JobState |
stateFor(String state)
Utility function to convert a state text to to the JobState. |
static JobState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JobState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.oddjob.state.State |
---|
isComplete, isDestroyed, isDone, isException, isIncomplete, isReady, isStoppable |
Enum Constant Detail |
---|
public static final JobState READY
public static final JobState EXECUTING
public static final JobState INCOMPLETE
public static final JobState COMPLETE
public static final JobState EXCEPTION
public static final JobState DESTROYED
Method Detail |
---|
public static JobState[] values()
for (JobState c : JobState.values()) System.out.println(c);
public static JobState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static JobState stateFor(String state)
state
- Case insensitive text.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |