voldemort.store.slop.strategy
Class ConsistentHandoffStrategy
java.lang.Object
voldemort.store.slop.strategy.ConsistentHandoffStrategy
- All Implemented Interfaces:
- HintedHandoffStrategy
public class ConsistentHandoffStrategy
- extends java.lang.Object
- implements HintedHandoffStrategy
A strategy which hands a hint off to any one of N nodes adjacent to the
failed node in the ring, the list of the N nodes being static
Constructor Summary |
ConsistentHandoffStrategy(Cluster cluster,
int prefListSize,
boolean enableZoneRouting,
int clientZoneId)
Creates a consistent 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 |
ConsistentHandoffStrategy
public ConsistentHandoffStrategy(Cluster cluster,
int prefListSize,
boolean enableZoneRouting,
int clientZoneId)
- Creates a consistent handoff strategy instance
- Parameters:
cluster
- The clusterprefListSize
- The number of nodes adjacent to the failed node in
the that could be selected to receive given hintenableZoneRouting
- is zone routing enabled?clientZoneId
- client zone id if zone routing is enabled
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