Enum Class JobStatus

java.lang.Object
java.lang.Enum<JobStatus>
com.netflix.genie.common.internal.dtos.JobStatus
All Implemented Interfaces:
Serializable, Comparable<JobStatus>, Constable

public enum JobStatus extends Enum<JobStatus>
Possible statuses for a Job.
Since:
4.0.0
  • Enum Constant Details

    • RESERVED

      public static final JobStatus RESERVED
      The id of the job has been reserved.
    • RESOLVED

      public static final JobStatus RESOLVED
      The job specification has been resolved.
    • ACCEPTED

      public static final JobStatus ACCEPTED
      The job has been accepted by the system via the REST API.
    • CLAIMED

      public static final JobStatus CLAIMED
      The job has been claimed by a running agent.
    • INIT

      public static final JobStatus INIT
      Job has been initialized, but not running yet.
    • RUNNING

      public static final JobStatus RUNNING
      Job is now running.
    • SUCCEEDED

      public static final JobStatus SUCCEEDED
      Job has finished executing, and is successful.
    • KILLED

      public static final JobStatus KILLED
      Job has been killed.
    • FAILED

      public static final JobStatus FAILED
      Job failed.
    • INVALID

      public static final JobStatus INVALID
      Job cannot be run due to invalid criteria.
  • Method Details

    • values

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

      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.)
      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 name
      NullPointerException - if the argument is null
    • getActiveStatuses

      public static Set<JobStatus> getActiveStatuses()
      Get an unmodifiable set of all the statuses that make up a job being considered active.
      Returns:
      Unmodifiable set of all active statuses
    • getStatusesBeforeClaimed

      public static Set<JobStatus> getStatusesBeforeClaimed()
      Get an unmodifiable set of all the statuses that come before CLAIMED.
      Returns:
      Unmodifiable set of all statuses
    • getFinishedStatuses

      public static Set<JobStatus> getFinishedStatuses()
      Get an unmodifiable set of all the statuses that make up a job being considered finished.
      Returns:
      Unmodifiable set of all finished statuses
    • getResolvableStatuses

      public static Set<JobStatus> getResolvableStatuses()
      Get an unmodifiable set of all the statuses from which a job can be marked resolved.
      Returns:
      Unmodifiable set of all resolvable statuses
    • getClaimableStatuses

      public static Set<JobStatus> getClaimableStatuses()
      Get an unmodifiable set of all the statuses from which a job can be marked claimed.
      Returns:
      Unmodifiable set of all claimable statuses
    • isFinished

      public boolean isFinished()
      Check whether the job is no longer running.
      Returns:
      True if the job is no longer processing for one reason or another.