com.vmware.vcloud.sdk.constants
Enum TaskStatusType

java.lang.Object
  extended by java.lang.Enum<TaskStatusType>
      extended by com.vmware.vcloud.sdk.constants.TaskStatusType
All Implemented Interfaces:
Serializable, Comparable<TaskStatusType>

public enum TaskStatusType
extends Enum<TaskStatusType>

TaskStatus constants

Since:
API 1.5, SDK 1.5
Author:
Ecosystem Engineering

Enum Constant Summary
ABORTED
          Aborted state indicates that a task has been stopped during its pre-running phase because a task extension request was aborted.
CANCELED
          Canceled indicates that the task was stopped from executing before it began or was completed and no further processing will take place.
ERROR
          Error indicates a problem occurred while processing the task, either due to a system fault or due to the task being in conflict with the state of the affected resources.
PRERUNNING
          PreRunning state indicates that the task has not started yet but is pending for pre-processing.
QUEUED
          Queued indicates no processing has taken place yet.
RUNNING
          Running indicates that the system is currently processing the task.
SUCCESS
          Success indicates the task completed as intended with the desired result.
 
Method Summary
static TaskStatusType fromValue(String value)
           
 String value()
           
static TaskStatusType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TaskStatusType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QUEUED

public static final TaskStatusType QUEUED
Queued indicates no processing has taken place yet.


PRERUNNING

public static final TaskStatusType PRERUNNING
PreRunning state indicates that the task has not started yet but is pending for pre-processing. A task might be pending for pre-processing if task extensions are configured. In such cases task is waiting to be resumed.


SUCCESS

public static final TaskStatusType SUCCESS
Success indicates the task completed as intended with the desired result.


RUNNING

public static final TaskStatusType RUNNING
Running indicates that the system is currently processing the task.


ERROR

public static final TaskStatusType ERROR
Error indicates a problem occurred while processing the task, either due to a system fault or due to the task being in conflict with the state of the affected resources.


CANCELED

public static final TaskStatusType CANCELED
Canceled indicates that the task was stopped from executing before it began or was completed and no further processing will take place.


ABORTED

public static final TaskStatusType ABORTED
Aborted state indicates that a task has been stopped during its pre-running phase because a task extension request was aborted.

Method Detail

values

public static TaskStatusType[] 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 (TaskStatusType c : TaskStatusType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskStatusType 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()

fromValue

public static TaskStatusType fromValue(String value)


Copyright © 2016. All Rights Reserved.