Enum Class JobStatus

java.lang.Object
java.lang.Enum<JobStatus>
net.solarnetwork.central.scheduler.JobStatus
All Implemented Interfaces:
Serializable, Comparable<JobStatus>, Constable

public enum JobStatus extends Enum<JobStatus>
Status for a job.
Since:
1.37
  • Enum Constant Details

    • Scheduled

      public static final JobStatus Scheduled
      The job is scheduled to run normally.
    • Paused

      public static final JobStatus Paused
      The job will not be executed in the future, but can be resumed.
    • Complete

      public static final JobStatus Complete
      The job has finished executing and is not scheduled to run again.
    • Error

      public static final JobStatus Error
      The job encountered an error.
    • Unknown

      public static final JobStatus Unknown
      The job is not in any known state.
  • 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