voldemort.store.slop.strategy
Class ProximityHandoffStrategy

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

public class ProximityHandoffStrategy
extends java.lang.Object
implements HintedHandoffStrategy

A preference list based handoff strategy which stores multi-zone information


Constructor Summary
ProximityHandoffStrategy(Cluster cluster, int clientZoneId)
          Constructor which makes zone based mapping
 
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

ProximityHandoffStrategy

public ProximityHandoffStrategy(Cluster cluster,
                                int clientZoneId)
Constructor which makes zone based mapping

Parameters:
cluster - The cluster
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