org.jclouds.vcloud.domain
Enum TaskStatus

java.lang.Object
  extended by java.lang.Enum<TaskStatus>
      extended by org.jclouds.vcloud.domain.TaskStatus
All Implemented Interfaces:
Serializable, Comparable<TaskStatus>

public enum TaskStatus
extends Enum<TaskStatus>

Author:
Adrian Cole

Enum Constant Summary
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
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final TaskStatus SUCCESS
The task has completed and returned a value indicating success.


RUNNING

public static final TaskStatus RUNNING
The task is running.


QUEUED

public static final TaskStatus QUEUED
The task has been queued for execution.


ERROR

public static final TaskStatus ERROR
The task has completed and returned a value indicating an error.


CANCELLED

public static final TaskStatus CANCELLED
not an official status, temporarily in.


UNRECOGNIZED

public static final TaskStatus UNRECOGNIZED
Method Detail

values

public static 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 (TaskStatus c : 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 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 name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<TaskStatus>

fromValue

public static TaskStatus fromValue(String status)


Copyright © 2009-2011 jclouds. All Rights Reserved.