private class FavoredStochasticBalancer.FavoredNodeLocalityPicker extends StochasticLoadBalancer.CandidateGenerator
Modifier | Constructor and Description |
---|---|
private |
FavoredNodeLocalityPicker() |
Modifier and Type | Method and Description |
---|---|
protected BaseLoadBalancer.Cluster.Action |
generate(BaseLoadBalancer.Cluster cluster) |
private int |
getDifferentFavoredNode(BaseLoadBalancer.Cluster cluster,
List<ServerName> favoredNodes,
int currentServer) |
private int |
pickLowestLocalRegionOnServer(BaseLoadBalancer.Cluster cluster,
int server) |
getAction, getRandomIterationOrder, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
private FavoredNodeLocalityPicker()
protected BaseLoadBalancer.Cluster.Action generate(BaseLoadBalancer.Cluster cluster)
generate
in class StochasticLoadBalancer.CandidateGenerator
private int getDifferentFavoredNode(BaseLoadBalancer.Cluster cluster, List<ServerName> favoredNodes, int currentServer)
private int pickLowestLocalRegionOnServer(BaseLoadBalancer.Cluster cluster, int server)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.