public static enum ExecutionTask.State extends Enum<ExecutionTask.State>
Enum Constant and Description |
---|
ABORTED
The rollback of the original proposal was either done successfully
or the original proposal successfully applied (in the case of a race-condition where we mark it as aborting right before completion).
|
ABORTING
An error occurred and we will attempt to roll it back.
|
COMPLETED
The task is done.
|
DEAD
An error occurred and the proposal cannot be rolled back.
|
IN_PROGRESS
Was executed, is in progress.
|
PENDING
Yet to be executed.
|
TO_RETRY
Was executed, but failed with a retriable error.
|
Modifier and Type | Method and Description |
---|---|
static List<ExecutionTask.State> |
cachedValues() |
static String |
summarize(Map<ExecutionTask.State,Integer> stateToNumMovements)
Summarizes the number of movements for each
ExecutionTask.State . |
abstract String |
toString(int numMovements) |
static ExecutionTask.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutionTask.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutionTask.State PENDING
public static final ExecutionTask.State IN_PROGRESS
public static final ExecutionTask.State TO_RETRY
public static final ExecutionTask.State ABORTING
public static final ExecutionTask.State ABORTED
public static final ExecutionTask.State COMPLETED
public static final ExecutionTask.State DEAD
public static ExecutionTask.State[] values()
for (ExecutionTask.State c : ExecutionTask.State.values()) System.out.println(c);
public static ExecutionTask.State 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 abstract String toString(int numMovements)
numMovements
- - the number of movements that are in this statepublic static String summarize(Map<ExecutionTask.State,Integer> stateToNumMovements)
ExecutionTask.State
.public static List<ExecutionTask.State> cachedValues()