voldemort.store.slop.strategy
Class HandoffToAnyStrategy

java.lang.Object
  extended by voldemort.store.slop.strategy.HandoffToAnyStrategy
All Implemented Interfaces:
HintedHandoffStrategy

public class HandoffToAnyStrategy
extends java.lang.Object
implements HintedHandoffStrategy

A strategy that hands a hint off to any random live node in the ring


Constructor Summary
HandoffToAnyStrategy(Cluster cluster, boolean enableZoneRouting, int clientZoneId)
          Creates a to-any handoff strategy instance
 
Method Summary
 java.util.List<Node> routeHint(Node origin)
          Get an ordered "preference list" of nodes eligible to receive hints for a given node in case of that node's failure
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandoffToAnyStrategy

public HandoffToAnyStrategy(Cluster cluster,
                            boolean enableZoneRouting,
                            int clientZoneId)
Creates a to-any handoff strategy instance

Parameters:
cluster - The cluster
enableZoneRouting - Is zone routing enabled
clientZoneId - Client zone id
Method Detail

routeHint

public java.util.List<Node> routeHint(Node origin)
Description copied from interface: HintedHandoffStrategy
Get an ordered "preference list" of nodes eligible to receive hints for a given node in case of that node's failure

Specified by:
routeHint in interface HintedHandoffStrategy
Parameters:
origin - The original node which failed to receive the request
Returns:
The list of nodes eligible to receive hints for original node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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