public static class StochasticLoadBalancer.LoadPicker extends Object
| Constructor and Description |
|---|
StochasticLoadBalancer.LoadPicker() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
pickOtherRandomServer(BaseLoadBalancer.Cluster cluster,
int serverIndex) |
protected int |
pickRandomRegion(BaseLoadBalancer.Cluster cluster,
int server,
double chanceOfNoSwap)
From a list of regions pick a random one.
|
protected Pair<Integer,Integer> |
pickRandomRegions(BaseLoadBalancer.Cluster cluster,
int thisServer,
int otherServer) |
protected int |
pickRandomServer(BaseLoadBalancer.Cluster cluster) |
protected int pickRandomRegion(BaseLoadBalancer.Cluster cluster, int server, double chanceOfNoSwap)
StochasticLoadBalancer.balanceCluster(Map) recognize as signal to try a region move
rather than swap.cluster - The state of the clusterserver - index of the serverchanceOfNoSwap - Chance that this will decide to try a move rather
than a swap.HRegionInfo or null if an asymmetrical move is
suggested.protected int pickRandomServer(BaseLoadBalancer.Cluster cluster)
protected int pickOtherRandomServer(BaseLoadBalancer.Cluster cluster, int serverIndex)
protected Pair<Integer,Integer> pickRandomRegions(BaseLoadBalancer.Cluster cluster, int thisServer, int otherServer)
Copyright © 2014 The Apache Software Foundation. All rights reserved.