Enum Class JobTriggerStatus

java.lang.Object
java.lang.Enum<JobTriggerStatus>
org.graylog.scheduler.JobTriggerStatus
All Implemented Interfaces:
Serializable, Comparable<JobTriggerStatus>, Constable

public enum JobTriggerStatus extends Enum<JobTriggerStatus>
Job triggers can be in different lifecycle statuses.
  • Enum Constant Details

    • RUNNABLE

      public static final JobTriggerStatus RUNNABLE
      The trigger is ready to be locked by a node to execute the job.
    • RUNNING

      public static final JobTriggerStatus RUNNING
      The trigger has been locked by a node and the job is executing.
    • COMPLETE

      public static final JobTriggerStatus COMPLETE
      The trigger is complete will not be fired anymore. This will mostly be used for one-off jobs that should only run once.
    • PAUSED

      public static final JobTriggerStatus PAUSED
      The trigger has been temporarily paused to avoid further executions. (e.g. maintenance periods)
    • ERROR

      public static final JobTriggerStatus ERROR
      The trigger cannot be fired because of an error. Triggers with this status will most probably need some human intervention to fix the underlying issue. (e.g. too many unsuccessful retries, missing Job class)
    • CANCELLED

      public static final JobTriggerStatus CANCELLED
      The trigger was manually cancelled and has aborted its execution.
  • Method Details

    • values

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