Package com.onenetwork.platform.grid
Class JobState
java.lang.Object
com.onenetwork.platform.grid.JobState
public class JobState
extends java.lang.Object
Describes all possible values of
GridJob.getState()
.
The job's state is dependent on the states of the tasks it contains:
Task states | Job state |
---|---|
All IDLE | IDLE |
One or more in RUNNING, FAIL PENDING, FAILED or SUCCEEDED, but some still IDLE | RUNNING |
One or more in FAILED with propagateFail = true | FAILED |
All tasks FAILED (with propagateFail = false) or SUCCEEDED | SUCCEEDED |
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FAILED
Job state if one or more tasks fail and propagateFail = truestatic java.lang.String
IDLE
Job state when all tasks are IDLEstatic java.lang.String
RUNNING
Job state when the first task has started but the last has not completed.static java.lang.String
SUCCEEDED
Job state if all tasks complete successfully, or all tasks complete (with possible failures) but propagateFail = false. -
Method Summary
-
Field Details
-
IDLE
public static final java.lang.String IDLEJob state when all tasks are IDLE- See Also:
- Constant Field Values
-
RUNNING
public static final java.lang.String RUNNINGJob state when the first task has started but the last has not completed.- See Also:
- Constant Field Values
-
SUCCEEDED
public static final java.lang.String SUCCEEDEDJob state if all tasks complete successfully, or all tasks complete (with possible failures) but propagateFail = false.- See Also:
- Constant Field Values
-
FAILED
public static final java.lang.String FAILEDJob state if one or more tasks fail and propagateFail = true- See Also:
- Constant Field Values
-