Package com.onenetwork.platform.grid
Class TaskState
java.lang.Object
com.onenetwork.platform.grid.TaskState
public class TaskState
extends java.lang.Object
Describes all possible values of
GridTask.getState()
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FAIL_PENDING
FAIL PENDING is a transitional state just before FAILED; when a task's propagateFail = true, it will remain in this state until all dependent tasks themselves have been moved to FAIL PENDING, after which it will be moved to FAILED.static java.lang.String
FAILED
A FAILED task was attempted up to its max number of possible attempts (or latest possible start time) and failed each execution.static java.lang.String
IDLE
An IDLE task is a candidate to be run once its time and task dependencies have been met.static java.lang.String
RUNNING
A RUNNING task is currently executing, and will transition from RUNNING into FAIL PENDING or SUCCEEDED.static java.lang.String
SUCCEEDED
A SUCCEEDED task completed its execution without error. -
Method Summary
-
Field Details
-
IDLE
public static final java.lang.String IDLEAn IDLE task is a candidate to be run once its time and task dependencies have been met. It may or may not have had previous attempts.- See Also:
- Constant Field Values
-
RUNNING
public static final java.lang.String RUNNINGA RUNNING task is currently executing, and will transition from RUNNING into FAIL PENDING or SUCCEEDED.- See Also:
- Constant Field Values
-
SUCCEEDED
public static final java.lang.String SUCCEEDEDA SUCCEEDED task completed its execution without error.- See Also:
- Constant Field Values
-
FAILED
public static final java.lang.String FAILEDA FAILED task was attempted up to its max number of possible attempts (or latest possible start time) and failed each execution. A failure reason will be available on the GridTask.- See Also:
- Constant Field Values
-
FAIL_PENDING
public static final java.lang.String FAIL_PENDINGFAIL PENDING is a transitional state just before FAILED; when a task's propagateFail = true, it will remain in this state until all dependent tasks themselves have been moved to FAIL PENDING, after which it will be moved to FAILED.- See Also:
- Constant Field Values
-