com.senseidb.cluster.routing
Class UniformPartitionedLoadBalancer

java.lang.Object
  extended by com.senseidb.cluster.routing.UniformPartitionedLoadBalancer
All Implemented Interfaces:
SenseiLoadBalancer

public class UniformPartitionedLoadBalancer
extends Object
implements SenseiLoadBalancer


Constructor Summary
UniformPartitionedLoadBalancer(it.unimi.dsi.fastutil.ints.Int2ObjectMap<ArrayList<com.linkedin.norbert.javacompat.cluster.Node>> nodeMap, Random rand)
           
 
Method Summary
 com.linkedin.norbert.javacompat.cluster.Node calculateRoute(int partition)
           
 it.unimi.dsi.fastutil.ints.IntSet getPartitions()
           
 com.linkedin.norbert.javacompat.cluster.Node nextNode(int partition)
           
 com.linkedin.norbert.javacompat.cluster.Node nextNode(Integer partition)
           
 RoutingInfo route(String routeParam)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformPartitionedLoadBalancer

public UniformPartitionedLoadBalancer(it.unimi.dsi.fastutil.ints.Int2ObjectMap<ArrayList<com.linkedin.norbert.javacompat.cluster.Node>> nodeMap,
                                      Random rand)
Method Detail

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.