Package alluxio.cli.fsadmin.command
Enum DecommissionWorkerCommand.ReturnCode
- java.lang.Object
-
- java.lang.Enum<DecommissionWorkerCommand.ReturnCode>
-
- alluxio.cli.fsadmin.command.DecommissionWorkerCommand.ReturnCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DecommissionWorkerCommand.ReturnCode>
- Enclosing class:
- DecommissionWorkerCommand
public static enum DecommissionWorkerCommand.ReturnCode extends java.lang.Enum<DecommissionWorkerCommand.ReturnCode>
A set of return codes. Each code embeds an exit code (like 0 or 1) and a message for the admin.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECOMMISSION_FAILEDLOST_MASTER_CONNECTIONLOST_SOME_WORKERSOKWORKERS_NOT_IDLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Gets the code.java.lang.StringgetMessage()Gets the message.static DecommissionWorkerCommand.ReturnCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DecommissionWorkerCommand.ReturnCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final DecommissionWorkerCommand.ReturnCode OK
-
DECOMMISSION_FAILED
public static final DecommissionWorkerCommand.ReturnCode DECOMMISSION_FAILED
-
LOST_MASTER_CONNECTION
public static final DecommissionWorkerCommand.ReturnCode LOST_MASTER_CONNECTION
-
WORKERS_NOT_IDLE
public static final DecommissionWorkerCommand.ReturnCode WORKERS_NOT_IDLE
-
LOST_SOME_WORKERS
public static final DecommissionWorkerCommand.ReturnCode LOST_SOME_WORKERS
-
-
Method Detail
-
values
public static DecommissionWorkerCommand.ReturnCode[] 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 (DecommissionWorkerCommand.ReturnCode c : DecommissionWorkerCommand.ReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DecommissionWorkerCommand.ReturnCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
Gets the code.- Returns:
- the code
-
getMessage
public java.lang.String getMessage()
Gets the message.- Returns:
- the message
-
-