public enum TaskExecutionState extends java.lang.Enum<TaskExecutionState>
Enum Constant and Description |
---|
ABORTED |
ABORTING |
CANCELLED |
CANCELLING |
DONE |
EXECUTED |
EXECUTING |
FAILED |
FAILING |
PENDING |
QUEUED |
SCHEDULED |
STOPPED |
STOPPING |
UNREGISTERED |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
If the task is in an active state, the task can go into a different state by itself.
|
boolean |
isExecutingSteps()
Determines if the task is in a state where it is executing steps.
|
boolean |
isExecutionHalted()
Determines if the task has been executing but is halted and can be continued.
|
boolean |
isFinal()
If the task is in a final state, it will never change again to another state.
|
boolean |
isNotBeenExecuting()
Determines if the task is never been executing.
|
boolean |
isPassive()
If the task is in a passive state, the task will not go into a different state by itself.
|
boolean |
isPassiveAfterExecuting()
Determines if the task is passive but it has been executing steps.
|
static TaskExecutionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskExecutionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskExecutionState UNREGISTERED
public static final TaskExecutionState PENDING
public static final TaskExecutionState SCHEDULED
public static final TaskExecutionState QUEUED
public static final TaskExecutionState EXECUTING
public static final TaskExecutionState FAILING
public static final TaskExecutionState FAILED
public static final TaskExecutionState STOPPING
public static final TaskExecutionState STOPPED
public static final TaskExecutionState ABORTING
public static final TaskExecutionState ABORTED
public static final TaskExecutionState EXECUTED
public static final TaskExecutionState DONE
public static final TaskExecutionState CANCELLED
public static final TaskExecutionState CANCELLING
public static TaskExecutionState[] values()
for (TaskExecutionState c : TaskExecutionState.values()) System.out.println(c);
public static TaskExecutionState 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 boolean isFinal()
public boolean isActive()
public boolean isPassive()
public boolean isExecutingSteps()
isActive()
public boolean isPassiveAfterExecuting()
public boolean isExecutionHalted()
public boolean isNotBeenExecuting()