voldemort.store.slop.strategy
Enum HintedHandoffStrategyType

java.lang.Object
  extended by java.lang.Enum<HintedHandoffStrategyType>
      extended by voldemort.store.slop.strategy.HintedHandoffStrategyType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HintedHandoffStrategyType>

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

Enumerates different hinted handoff strategies.


Enum Constant Summary
ANY_STRATEGY
           
CONSISTENT_STRATEGY
           
PROXIMITY_STRATEGY
           
 
Method Summary
static HintedHandoffStrategyType fromDisplay(java.lang.String type)
           
 java.lang.String toDisplay()
           
static HintedHandoffStrategyType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HintedHandoffStrategyType[] 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

CONSISTENT_STRATEGY

public static final HintedHandoffStrategyType CONSISTENT_STRATEGY

ANY_STRATEGY

public static final HintedHandoffStrategyType ANY_STRATEGY

PROXIMITY_STRATEGY

public static final HintedHandoffStrategyType PROXIMITY_STRATEGY
Method Detail

values

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

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

valueOf

public static HintedHandoffStrategyType 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

fromDisplay

public static HintedHandoffStrategyType fromDisplay(java.lang.String type)

toDisplay

public java.lang.String toDisplay()


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