public enum TaskStatus extends java.lang.Enum<TaskStatus> implements java.io.Serializable
Enum Constant and Description |
---|
ASSIGNED
Task is assigned but not run yet.
|
CANCELED
Task is canceled.
|
CANCELING
Task is in the process of canceling.
|
COMPLETED
Task completed successfully.
|
ENVIRONMENT_ERROR
Task failed to run because of an uncaught
exception in
TaskEnvironment.setup() . |
FAILED
Task failed because of an uncaught exception
while running the task.
|
INTERRUPTED
Task encountered a system exception.
|
NOT_SUBMITTED
Task is not submitted yet.
|
RUNNING
Task is currently running.
|
SUBMITTED
Task is submitted but not assigned yet.
|
TIMED_OUT
Task timed-out because it ran longer than the
task timeout value.
|
Modifier and Type | Method and Description |
---|---|
static TaskStatus
|
getDefault()
Get the enum constant that is considered to be
the default.
|
static TaskStatus
|
getFromValue(int value)
Get the enum constant that is associated with
the given numeric value.
|
int
|
getValue()
Get the numeric value associated with this enum
constant.
|
static TaskStatus
|
valueOf(java.lang.String name)
Returns the enum constant of this type with the
specified name.
|
static TaskStatus[]
|
values()
Returns an array containing the constants of
this enum type, in the order they are declared.
|
public static final TaskStatus NOT_SUBMITTED
public static final TaskStatus SUBMITTED
public static final TaskStatus ASSIGNED
public static final TaskStatus RUNNING
public static final TaskStatus CANCELING
public static final TaskStatus INTERRUPTED
public static final TaskStatus CANCELED
public static final TaskStatus ENVIRONMENT_ERROR
TaskEnvironment.setup()
.public static final TaskStatus COMPLETED
public static final TaskStatus TIMED_OUT
public static final TaskStatus FAILED
public static TaskStatus[] values()
for (TaskStatus c : TaskStatus.values()) System.out.println(c);
public static TaskStatus 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 int getValue()
public static TaskStatus getFromValue(int value)
value
- a numeric value.public static TaskStatus getDefault()
STK Scalability 1.3 API for Java