public enum TaskStatus extends Enum<TaskStatus>
Enum Constant and Description |
---|
CANCELLED
not an official status, temporarily in.
|
ERROR
The task has completed and returned a value indicating an error.
|
QUEUED
The task has been queued for execution.
|
RUNNING
The task is running.
|
SUCCESS
The task has completed and returned a value indicating success.
|
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static TaskStatus |
fromValue(String status) |
String |
toString() |
String |
value() |
static TaskStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskStatus SUCCESS
public static final TaskStatus RUNNING
public static final TaskStatus QUEUED
public static final TaskStatus ERROR
public static final TaskStatus CANCELLED
public static final TaskStatus UNRECOGNIZED
public static TaskStatus[] values()
for (TaskStatus c : TaskStatus.values()) System.out.println(c);
public static 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 String value()
public String toString()
toString
in class Enum<TaskStatus>
public static TaskStatus fromValue(String status)
Copyright © 2009-2013 jclouds. All Rights Reserved.