voldemort.routing
Class RouteToAllLocalPrefStrategy

java.lang.Object
  extended by voldemort.routing.RouteToAllStrategy
      extended by voldemort.routing.RouteToAllLocalPrefStrategy
All Implemented Interfaces:
RoutingStrategy

public class RouteToAllLocalPrefStrategy
extends RouteToAllStrategy

A class that denotes a route to all strategy with local preference. This class is meant to be consistent with the routing hierarchy convention. It simply returns the list of all nodes (just like RouteToAllStrategy) but is used to indicate that extra processing will be done down the pipeline.

Author:
csoman

Constructor Summary
RouteToAllLocalPrefStrategy(java.util.Collection<Node> nodes)
           
 
Method Summary
 java.lang.String getType()
          Get the type of RoutingStrategyType
 
Methods inherited from class voldemort.routing.RouteToAllStrategy
getMasterPartition, getNodes, getNumReplicas, getPartitionList, getReplicatingPartitionList, routeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteToAllLocalPrefStrategy

public RouteToAllLocalPrefStrategy(java.util.Collection<Node> nodes)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: RoutingStrategy
Get the type of RoutingStrategyType

Specified by:
getType in interface RoutingStrategy
Overrides:
getType in class RouteToAllStrategy
Returns:
RoutingStrategyType


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