public static enum RPCResponse.Status extends Enum<RPCResponse.Status>
| Enum Constant and Description |
|---|
BLOCK_LOCK_ERROR |
DECODE_ERROR |
FILE_DNE |
SUCCESS |
UNEXPECTED_STATUS_CODE |
UNKNOWN_MESSAGE_ERROR |
WRITE_ERROR |
| Modifier and Type | Method and Description |
|---|---|
static RPCResponse.Status |
fromShort(short id)
Returns the
RPCResponse.Status represented by the short. |
short |
getId()
Returns the short identifier of the status.
|
String |
getMessage()
Returns the message for the status.
|
static RPCResponse.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RPCResponse.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RPCResponse.Status SUCCESS
public static final RPCResponse.Status UNEXPECTED_STATUS_CODE
public static final RPCResponse.Status DECODE_ERROR
public static final RPCResponse.Status UNKNOWN_MESSAGE_ERROR
public static final RPCResponse.Status FILE_DNE
public static final RPCResponse.Status BLOCK_LOCK_ERROR
public static final RPCResponse.Status WRITE_ERROR
public static RPCResponse.Status[] values()
for (RPCResponse.Status c : RPCResponse.Status.values()) System.out.println(c);
public static RPCResponse.Status 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 short getId()
public String getMessage()
public static RPCResponse.Status fromShort(short id)
RPCResponse.Status represented by the short.id - the short representing a RPCResponse.StatusRPCResponse.Status representing the given shortCopyright © 2015. All Rights Reserved.