Enum WorkChunkStatusEnum

java.lang.Object
java.lang.Enum<WorkChunkStatusEnum>
ca.uhn.fhir.batch2.model.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 Details

    • READY

      public static final WorkChunkStatusEnum READY
      The initial state all workchunks start in for non-gated jobs.
    • GATE_WAITING

      public static final WorkChunkStatusEnum GATE_WAITING
      The initial state all workchunks start in for gated jobs.
    • REDUCTION_READY

      public static final WorkChunkStatusEnum REDUCTION_READY
      Workchunk is ready for reduction pass. It will not be QUEUED, but consumed inline by reduction pass.
    • QUEUED

      public static final WorkChunkStatusEnum 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

      public static final WorkChunkStatusEnum IN_PROGRESS
      The state of workchunks that are doing work.
    • POLL_WAITING

      public static final WorkChunkStatusEnum 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

      public static final WorkChunkStatusEnum 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

      public static final WorkChunkStatusEnum FAILED
      Chunk has failed with a non-retriable error, or has run out of retry attempts.
    • COMPLETED

      public static final WorkChunkStatusEnum COMPLETED
      The state of workchunks that have finished their job's step.
  • Method Details

    • values

      public static WorkChunkStatusEnum[] 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

      public static WorkChunkStatusEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isIncomplete

      public boolean isIncomplete()
    • isAReadyState

      public boolean isAReadyState()
    • getNextStates

    • getPriorStates