Enum Class CommandStatus

java.lang.Object
java.lang.Enum<CommandStatus>
com.netflix.genie.common.dto.CommandStatus
All Implemented Interfaces:
Serializable, Comparable<CommandStatus>, Constable

public enum CommandStatus extends Enum<CommandStatus>
The available statuses for Commands.
  • Enum Constant Details

    • ACTIVE

      public static final CommandStatus ACTIVE
      Command is active, and in-use.
    • DEPRECATED

      public static final CommandStatus DEPRECATED
      Command is deprecated, and will be made inactive in the future.
    • INACTIVE

      public static final CommandStatus INACTIVE
      Command is inactive, and not in-use.
  • Method Details

    • values

      public static CommandStatus[] 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 CommandStatus 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
    • parse

      public static CommandStatus parse(String value) throws GeniePreconditionException
      Parse command status.
      Parameters:
      value - string to parse/convert into command status
      Returns:
      ACTIVE, DEPRECATED, INACTIVE if match
      Throws:
      GeniePreconditionException - on invalid value