Enum Class ExitStatus

java.lang.Object
java.lang.Enum<ExitStatus>
org.apache.hadoop.hdfs.server.balancer.ExitStatus
All Implemented Interfaces:
Serializable, Comparable<ExitStatus>, Constable

public enum ExitStatus extends Enum<ExitStatus>
Exit status - The values associated with each exit status is directly mapped to the process's exit code in command line.
  • Enum Constant Details

    • SUCCESS

      public static final ExitStatus SUCCESS
    • IN_PROGRESS

      public static final ExitStatus IN_PROGRESS
    • ALREADY_RUNNING

      public static final ExitStatus ALREADY_RUNNING
    • NO_MOVE_BLOCK

      public static final ExitStatus NO_MOVE_BLOCK
    • NO_MOVE_PROGRESS

      public static final ExitStatus NO_MOVE_PROGRESS
    • IO_EXCEPTION

      public static final ExitStatus IO_EXCEPTION
    • ILLEGAL_ARGUMENTS

      public static final ExitStatus ILLEGAL_ARGUMENTS
    • INTERRUPTED

      public static final ExitStatus INTERRUPTED
    • UNFINALIZED_UPGRADE

      public static final ExitStatus UNFINALIZED_UPGRADE
  • Method Details

    • values

      public static ExitStatus[] 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 ExitStatus 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
    • getExitCode

      public int getExitCode()
      Returns:
      the command line exit code.