org.apache.hadoop.oncrpc
Enum RpcAcceptedReply.AcceptState
java.lang.Object
java.lang.Enum<RpcAcceptedReply.AcceptState>
org.apache.hadoop.oncrpc.RpcAcceptedReply.AcceptState
- All Implemented Interfaces:
- Serializable, Comparable<RpcAcceptedReply.AcceptState>
- Enclosing class:
- RpcAcceptedReply
public static enum RpcAcceptedReply.AcceptState
- extends Enum<RpcAcceptedReply.AcceptState>
SUCCESS
public static final RpcAcceptedReply.AcceptState SUCCESS
PROG_UNAVAIL
public static final RpcAcceptedReply.AcceptState PROG_UNAVAIL
PROG_MISMATCH
public static final RpcAcceptedReply.AcceptState PROG_MISMATCH
PROC_UNAVAIL
public static final RpcAcceptedReply.AcceptState PROC_UNAVAIL
GARBAGE_ARGS
public static final RpcAcceptedReply.AcceptState GARBAGE_ARGS
SYSTEM_ERR
public static final RpcAcceptedReply.AcceptState SYSTEM_ERR
values
public static RpcAcceptedReply.AcceptState[] 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 (RpcAcceptedReply.AcceptState c : RpcAcceptedReply.AcceptState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RpcAcceptedReply.AcceptState 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
fromValue
public static RpcAcceptedReply.AcceptState fromValue(int value)
getValue
public int getValue()
Copyright © 2009 The Apache Software Foundation