com.senseidb.cluster.routing
Class UniformPartitionedLoadBalancer
java.lang.Object
com.senseidb.cluster.routing.UniformPartitionedLoadBalancer
- All Implemented Interfaces:
- SenseiLoadBalancer
public class UniformPartitionedLoadBalancer
- extends Object
- implements SenseiLoadBalancer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniformPartitionedLoadBalancer
public UniformPartitionedLoadBalancer(it.unimi.dsi.fastutil.ints.Int2ObjectMap<ArrayList<com.linkedin.norbert.javacompat.cluster.Node>> nodeMap,
Random rand)
getPartitions
public it.unimi.dsi.fastutil.ints.IntSet getPartitions()
calculateRoute
public com.linkedin.norbert.javacompat.cluster.Node calculateRoute(int partition)
nextNode
public com.linkedin.norbert.javacompat.cluster.Node nextNode(int partition)
nextNode
public com.linkedin.norbert.javacompat.cluster.Node nextNode(Integer partition)
route
public RoutingInfo route(String routeParam)
- Specified by:
route
in interface SenseiLoadBalancer
- Returns:
- the routing information for the given routing parameter.
Copyright © 2010-2012. All Rights Reserved.