Enum Class CommandStatus

java.lang.Object
java.lang.Enum<CommandStatus>
org.apache.nifi.bootstrap.command.CommandStatus
All Implemented Interfaces:
Serializable, Comparable<CommandStatus>, Constable

public enum CommandStatus extends Enum<CommandStatus>
Enumeration of Bootstrap Command Statuses with status codes
  • Enum Constant Details

  • Field Details

    • status

      private final int status
  • Constructor Details

    • CommandStatus

      private CommandStatus(int status)
  • 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
    • getStatus

      public int getStatus()
      Get Status Code for use with System.exit()
      Returns:
      Status Code