public enum JobState extends Enum<JobState> implements State
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isComplete, isDestroyed, isException, isExecuting, isIncomplete, isReady, isStoppable
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
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 nameNullPointerException
- if the argument is null