voldemort.client.protocol
Enum RequestFormatType

java.lang.Object
  extended by java.lang.Enum<RequestFormatType>
      extended by voldemort.client.protocol.RequestFormatType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RequestFormatType>

public enum RequestFormatType
extends java.lang.Enum<RequestFormatType>

An enumeration of request serialization types


Enum Constant Summary
ADMIN_PROTOCOL_BUFFERS
           
PROTOCOL_BUFFERS
           
VOLDEMORT_V0
           
VOLDEMORT_V1
           
VOLDEMORT_V2
           
VOLDEMORT_V3
           
 
Method Summary
static RequestFormatType fromCode(java.lang.String code)
           
 java.lang.String getCode()
           
 java.lang.String getDisplayName()
           
static RequestFormatType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RequestFormatType[] 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

VOLDEMORT_V0

public static final RequestFormatType VOLDEMORT_V0

VOLDEMORT_V1

public static final RequestFormatType VOLDEMORT_V1

VOLDEMORT_V2

public static final RequestFormatType VOLDEMORT_V2

VOLDEMORT_V3

public static final RequestFormatType VOLDEMORT_V3

PROTOCOL_BUFFERS

public static final RequestFormatType PROTOCOL_BUFFERS

ADMIN_PROTOCOL_BUFFERS

public static final RequestFormatType ADMIN_PROTOCOL_BUFFERS
Method Detail

values

public static RequestFormatType[] 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 (RequestFormatType c : RequestFormatType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequestFormatType 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 name
java.lang.NullPointerException - if the argument is null

getCode

public java.lang.String getCode()

getDisplayName

public java.lang.String getDisplayName()

fromCode

public static RequestFormatType fromCode(java.lang.String code)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu