public enum TaskState extends Enum<TaskState>
Enum Constant and Description |
---|
Completed |
Error |
Interrupted |
Killed |
New |
Pending |
Running |
Starting |
Stopping |
Suspended |
Terminated |
Unknown |
Warning |
Modifier and Type | Method and Description |
---|---|
static TaskState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskState Completed
public static final TaskState Error
public static final TaskState Interrupted
public static final TaskState Killed
public static final TaskState New
public static final TaskState Pending
public static final TaskState Running
public static final TaskState Starting
public static final TaskState Stopping
public static final TaskState Suspended
public static final TaskState Terminated
public static final TaskState Unknown
public static final TaskState Warning
public static TaskState[] values()
for (TaskState c : TaskState.values()) System.out.println(c);
public static TaskState 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 © 2016. All rights reserved.