public final class ExecutionState extends Enum
ExecutionHandle
Modifier and Type | Field and Description |
---|---|
static ExecutionState |
ERROR
The task has completed with an error.
|
static ExecutionState |
EXECUTING
The task is still executing.
|
static ExecutionState |
SUBMITTED
The task has been submitted for execution but not yet started.
|
static ExecutionState |
SUCCESS
The task has completed successfully.
|
static ExecutionState |
TERMINATED
The task has completed prematurely as the result of a terminate request.
|
static ExecutionState |
TERMINATING
A terminate request has been issued but the task has not yet completed.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionState |
getEnum(java.lang.String name)
Returns the enumeration with the supplied name or
null if
no enumeration exists for the supplied name. |
static ExecutionState[] |
getValues()
Returns an array containing all the valid values for this enumeration class.
|
boolean |
isCompletedState()
Returns
true if this state represents a task that is no longer
executing. |
public static final ExecutionState SUBMITTED
public static final ExecutionState EXECUTING
public static final ExecutionState SUCCESS
public static final ExecutionState ERROR
public static final ExecutionState TERMINATED
public static final ExecutionState TERMINATING
public static ExecutionState getEnum(java.lang.String name)
null
if
no enumeration exists for the supplied name.name
- the enumeration namenull
public static ExecutionState[] getValues()
public boolean isCompletedState()
true
if this state represents a task that is no longer
executing. This true for SUCCESS
, TERMINATED
and
ERROR
states.true
if this state represents a task that is no longer
executingCopyright © 2014 Integral Solutions Ltd. All Rights Reserved.