public enum TaskStatus extends Enum<TaskStatus>
com.vmware.vcloud.api.presentation.entity.common.TaskStatus.
It is cloned in-order to avoid rest-client dependency on presentation layer.| Enum Constant and Description |
|---|
ABORTED
The task was aborted
|
CANCELED
The task was canceled.
|
ERROR
The task completed with an error.
|
PENDING
The task has been queued for execution
|
PRE_RUNNING
The task is assigned for pre-processing
|
RUNNING
The task is running
|
SUCCESS
The task completed successfully
|
| Modifier and Type | Method and Description |
|---|---|
static TaskStatus |
from(String s) |
String |
getLabel()
Getter for
label |
String |
toString() |
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 PENDING
public static final TaskStatus PRE_RUNNING
public static final TaskStatus RUNNING
public static final TaskStatus SUCCESS
public static final TaskStatus ABORTED
public static final TaskStatus ERROR
TaskSpec#error field would
be set with information about the errorpublic static final TaskStatus CANCELED
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 toString()
toString in class Enum<TaskStatus>Enum.toString()public static TaskStatus from(String s)
Copyright © 2019 VMware. All rights reserved.