Enum Class Job.Status

java.lang.Object
java.lang.Enum<Job.Status>
org.opencastproject.job.api.Job.Status
All Implemented Interfaces:
Serializable, Comparable<Job.Status>, Constable
Enclosing interface:
Job

public static enum Job.Status extends Enum<Job.Status>
The status of the job that this receipt represents
  • Enum Constant Details

    • QUEUED

      public static final Job.Status QUEUED
    • PAUSED

      public static final Job.Status PAUSED
    • RUNNING

      public static final Job.Status RUNNING
    • FINISHED

      public static final Job.Status FINISHED
    • FAILED

      public static final Job.Status FAILED
    • DELETED

      public static final Job.Status DELETED
    • INSTANTIATED

      public static final Job.Status INSTANTIATED
    • DISPATCHING

      public static final Job.Status DISPATCHING
    • RESTART

      public static final Job.Status RESTART
    • CANCELLED

      public static final Job.Status CANCELLED
    • WAITING

      public static final Job.Status WAITING
  • Method Details

    • values

      public static Job.Status[] 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 Job.Status 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
    • isTerminated

      public boolean isTerminated()
      Return if the job is terminated.
    • isActive

      public boolean isActive()
      Check if the job is still active, e.g. RUNNING or QUEUED. This is the negation of isTerminated().