org.apache.hadoop.hdfs.server.balancer
Enum ExitStatus
java.lang.Object
java.lang.Enum<ExitStatus>
org.apache.hadoop.hdfs.server.balancer.ExitStatus
- All Implemented Interfaces:
- Serializable, Comparable<ExitStatus>
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.
Method Summary |
int |
getExitCode()
|
static ExitStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ExitStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
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
values
public static ExitStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ExitStatus c : ExitStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ExitStatus valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null
getExitCode
public int getExitCode()
- Returns:
- the command line exit code.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.