Package ca.uhn.fhir.batch2.model
Enum WorkChunkStatusEnum
- All Implemented Interfaces:
Serializable,Comparable<WorkChunkStatusEnum>
States for the
WorkChunk state machine.
The initial state is QUEUED.
The terminal states are FAILED, COMPLETED.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe state of workchunks that have finished their job's step.A transient state on retry when a chunk throws an error, but hasn't FAILED yet.Chunk has failed with a non-retriable error, or has run out of retry attempts.The initial state all workchunks start in for gated jobs.The state of workchunks that are doing work.A workchunk status for workchunks that are doing long-polling work that will not complete in a reasonably short amount of timeThe state of workchunks that have been sent to the queue; or of workchunks that are about to be processed in a final reduction step (these workchunks are never queued)The initial state all workchunks start in for non-gated jobs.Workchunk is ready for reduction pass. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic WorkChunkStatusEnumReturns the enum constant of this type with the specified name.static WorkChunkStatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READY
The initial state all workchunks start in for non-gated jobs. -
GATE_WAITING
The initial state all workchunks start in for gated jobs. -
REDUCTION_READY
Workchunk is ready for reduction pass. It will not be QUEUED, but consumed inline by reduction pass. -
QUEUED
The state of workchunks that have been sent to the queue; or of workchunks that are about to be processed in a final reduction step (these workchunks are never queued) -
IN_PROGRESS
The state of workchunks that are doing work. -
POLL_WAITING
A workchunk status for workchunks that are doing long-polling work that will not complete in a reasonably short amount of time -
ERRORED
A transient state on retry when a chunk throws an error, but hasn't FAILED yet. Will move back to IN_PROGRESS on retry. -
FAILED
Chunk has failed with a non-retriable error, or has run out of retry attempts. -
COMPLETED
The state of workchunks that have finished their job's step.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
isIncomplete
-
isAReadyState
-
getNextStates
-
getPriorStates
-