public static enum TaskStatus.State extends Enum<TaskStatus.State>
Enum Constant and Description |
---|
EXPIRE
EXPIRE State refers to when a task is expired.
|
FAILED
FAILED State is assigned when task fails.
|
INIT
INIT State refers to Task initialization.
|
KILLED
KILLED State refers to when a task is killed.
|
RUNNING
RUNNING State refers to Task in Running state.
|
SUCCEEDED
SUCCEEDED State is assigned when task finishes successfully.
|
Modifier and Type | Method and Description |
---|---|
static TaskStatus.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskStatus.State INIT
public static final TaskStatus.State RUNNING
public static final TaskStatus.State SUCCEEDED
public static final TaskStatus.State FAILED
public static final TaskStatus.State KILLED
public static final TaskStatus.State EXPIRE
public static TaskStatus.State[] values()
for (TaskStatus.State c : TaskStatus.State.values()) System.out.println(c);
public static TaskStatus.State 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 nullCopyright © 2008–2022 Apache Software Foundation. All rights reserved.