public static enum Task.TaskStatus extends Enum<Task.TaskStatus>
Enum Constant and Description |
---|
FAILURE
Denotes that an error occurred during the execution of the task and it cannot continue processing.
|
PENDING
The task identifier has been reserved for a task in the Glance.
|
PROCESSING
The task has been picked up by the underlying executor and is
being run using the backend Glance execution logic for that task type.
|
SUCCESS
Denotes that the task has had a successful run within Glance.
|
UNKNOWN
Task status is not a known value.
|
Modifier and Type | Method and Description |
---|---|
String |
value() |
static Task.TaskStatus |
value(String v) |
static Task.TaskStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Task.TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task.TaskStatus PENDING
public static final Task.TaskStatus PROCESSING
public static final Task.TaskStatus SUCCESS
public static final Task.TaskStatus FAILURE
public static final Task.TaskStatus UNKNOWN
public static Task.TaskStatus[] values()
for (Task.TaskStatus c : Task.TaskStatus.values()) System.out.println(c);
public static Task.TaskStatus 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 nullpublic static Task.TaskStatus value(String v)
public String value()
Copyright © 2017. All rights reserved.