org.apache.hadoop.oncrpc
Enum RpcAcceptedReply.AcceptState

java.lang.Object
  extended by java.lang.Enum<RpcAcceptedReply.AcceptState>
      extended by 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>


Enum Constant Summary
GARBAGE_ARGS
           
PROC_UNAVAIL
           
PROG_MISMATCH
           
PROG_UNAVAIL
           
SUCCESS
           
SYSTEM_ERR
           
 
Method Summary
static RpcAcceptedReply.AcceptState fromValue(int value)
           
 int getValue()
           
static RpcAcceptedReply.AcceptState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RpcAcceptedReply.AcceptState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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