Enum Class JobStatus

All Implemented Interfaces:
Serializable, Comparable<JobStatus>, Constable

public enum JobStatus extends Enum<JobStatus>
Represents current status of the job from the perspective of the job coordinator.
Jet 3.0
  • Enum Constant Details


      public static final JobStatus NOT_RUNNING
      The job is submitted but hasn't started yet. A job also enters this state when its execution was interrupted (e.g., due to a cluster member failing), before it is started again.

      public static final JobStatus STARTING
      The job is in the initialization phase on a new coordinator.

      public static final JobStatus RUNNING
      The job is currently running.

      public static final JobStatus SUSPENDED
      The job is suspended, and it can be manually resumed.

      public static final JobStatus SUSPENDED_EXPORTING_SNAPSHOT
      The job is suspended and is exporting the snapshot. It cannot be resumed until the export is finished and status is SUSPENDED again.

      public static final JobStatus COMPLETING
      The job is currently being completed.
    • FAILED

      public static final JobStatus FAILED
      The job has failed with an exception.

      public static final JobStatus COMPLETED
      The job has completed successfully.
  • Method Details

    • values

      public static JobStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JobStatus valueOf(String name)
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isTerminal

      public boolean isTerminal()
      Returns true if this state is terminal - a job in this state will never have any other state and will never execute again. It's COMPLETED or FAILED.
    • getById

      public static JobStatus getById(int id)
    • getId

      public int getId()