@InterfaceAudience.Private @InterfaceStability.Unstable public static enum TaskStatus.State extends Enum<TaskStatus.State>
Enum Constant and Description |
---|
COMMIT_PENDING |
FAILED |
FAILED_UNCLEAN |
KILLED |
KILLED_UNCLEAN |
RUNNING |
SUCCEEDED |
UNASSIGNED |
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 RUNNING
public static final TaskStatus.State SUCCEEDED
public static final TaskStatus.State FAILED
public static final TaskStatus.State UNASSIGNED
public static final TaskStatus.State KILLED
public static final TaskStatus.State COMMIT_PENDING
public static final TaskStatus.State FAILED_UNCLEAN
public static final TaskStatus.State KILLED_UNCLEAN
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 © 2020 Apache Software Foundation. All rights reserved.