public static enum DecommissionWorkerCommand.ReturnCode extends Enum<DecommissionWorkerCommand.ReturnCode>
Enum Constant and Description |
---|
DECOMMISSION_FAILED |
LOST_MASTER_CONNECTION |
LOST_SOME_WORKERS |
OK |
WORKERS_NOT_IDLE |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the code.
|
String |
getMessage()
Gets the message.
|
static DecommissionWorkerCommand.ReturnCode |
valueOf(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.
|
public static final DecommissionWorkerCommand.ReturnCode OK
public static final DecommissionWorkerCommand.ReturnCode DECOMMISSION_FAILED
public static final DecommissionWorkerCommand.ReturnCode LOST_MASTER_CONNECTION
public static final DecommissionWorkerCommand.ReturnCode WORKERS_NOT_IDLE
public static final DecommissionWorkerCommand.ReturnCode LOST_SOME_WORKERS
public static DecommissionWorkerCommand.ReturnCode[] values()
for (DecommissionWorkerCommand.ReturnCode c : DecommissionWorkerCommand.ReturnCode.values()) System.out.println(c);
public static DecommissionWorkerCommand.ReturnCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public String getMessage()
Copyright © 2023. All Rights Reserved.