Enum Constant and Description |
---|
ACTIVE
An Asynchronous Job is waiting to complete.
|
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(java.lang.String state)
Utility function to convert a state text to to the JobState.
|
static JobState |
valueOf(java.lang.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 ACTIVE
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static JobState stateFor(java.lang.String state)
state
- Case insensitive text.