Package org.openstack4j.model.image.v2
Enum Task.TaskStatus
- java.lang.Object
-
- java.lang.Enum<Task.TaskStatus>
-
- org.openstack4j.model.image.v2.Task.TaskStatus
-
- All Implemented Interfaces:
Serializable,Comparable<Task.TaskStatus>
- Enclosing interface:
- Task
public static enum Task.TaskStatus extends Enum<Task.TaskStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILUREDenotes that an error occurred during the execution of the task and it cannot continue processing.PENDINGThe task identifier has been reserved for a task in the Glance.PROCESSINGThe task has been picked up by the underlying executor and is being run using the backend Glance execution logic for that task type.SUCCESSDenotes that the task has had a successful run within Glance.UNKNOWNTask status is not a known value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()static Task.TaskStatusvalue(String v)static Task.TaskStatusvalueOf(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.
-
-
-
Enum Constant Detail
-
PENDING
public static final Task.TaskStatus PENDING
The task identifier has been reserved for a task in the Glance. No processing has begun on it yet.
-
PROCESSING
public static final Task.TaskStatus 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
public static final Task.TaskStatus SUCCESS
Denotes that the task has had a successful run within Glance. The result field of the task shows more details about the outcome.
-
FAILURE
public static final Task.TaskStatus FAILURE
Denotes that an error occurred during the execution of the task and it cannot continue processing. The message field of the task shows what the error was.
-
UNKNOWN
public static final Task.TaskStatus UNKNOWN
Task status is not a known value.
-
-
Method Detail
-
values
public static Task.TaskStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Task.TaskStatus c : Task.TaskStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Task.TaskStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public static Task.TaskStatus value(String v)
-
value
public String value()
-
-