Package gda.jython

Enum Class JythonStatus

java.lang.Object
java.lang.Enum<JythonStatus>
gda.jython.JythonStatus
All Implemented Interfaces:
Serializable, Comparable<JythonStatus>, Constable

public enum JythonStatus extends Enum<JythonStatus>
JythonStatus represents the three possible states of a Jython script, scan or queue.
  • Enum Constant Details

    • IDLE

      public static final JythonStatus IDLE
      Script, scan or queue not in use
    • PAUSED

      public static final JythonStatus PAUSED
      Script, scan or queue in progress but paused
    • RUNNING

      public static final JythonStatus RUNNING
      Script, scan or queue in progress and not paused
  • Method Details

    • values

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