Enum Class GenericStatus
- All Implemented Interfaces:
Serializable
,Comparable<GenericStatus>
,Constable
Statuses of a
FlowChunk
in increasing priority order
Note, when adding new statuses you need to add a new StatusAndTiming.StatusApiVersion
and set the value of StatusAndTiming.CURRENT_API_VERSION
to that,
and update StatusAndTiming.coerceStatusMap(Map)
to do coercion for new codings to protect core APIs from unknown values-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAborted while running, no way to determine final outcomeResult.ABORTED
Completed and explicitly failed, i.e.Not complete: still executing, waiting for a resultWe resumed from checkpoint orResult.NOT_BUILT
status - nothing ran in the chunk.Not complete: we are waiting for user input to continue (special case of IN_PROGRESS)Not complete: still executing, in a node block, but the node block is in queue.Completed & successful, exResult.SUCCESS
Completed with recoverable failures, such as noncritical tests, exResult.UNSTABLE
-
Method Summary
Modifier and TypeMethodDescriptionstatic GenericStatus
fromResult
(Result result) Create aGenericStatus
from aResult
static GenericStatus
Returns the enum constant of this class with the specified name.static GenericStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_EXECUTED
We resumed from checkpoint orResult.NOT_BUILT
status - nothing ran in the chunk. -
SUCCESS
Completed & successful, exResult.SUCCESS
-
UNSTABLE
Completed with recoverable failures, such as noncritical tests, exResult.UNSTABLE
-
QUEUED
Not complete: still executing, in a node block, but the node block is in queue. -
IN_PROGRESS
Not complete: still executing, waiting for a result -
FAILURE
Completed and explicitly failed, i.e.Result.FAILURE
-
ABORTED
Aborted while running, no way to determine final outcomeResult.ABORTED
-
PAUSED_PENDING_INPUT
Not complete: we are waiting for user input to continue (special case of IN_PROGRESS)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromResult
Create aGenericStatus
from aResult
-