class FavoredStochasticBalancer.FavoredNodeLoadPicker extends StochasticLoadBalancer.CandidateGenerator
Constructor and Description |
---|
FavoredNodeLoadPicker() |
Modifier and Type | Method and Description |
---|---|
(package private) BaseLoadBalancer.Cluster.Action |
generate(BaseLoadBalancer.Cluster cluster) |
private int |
pickLeastLoadedFNServer(BaseLoadBalancer.Cluster cluster,
List<ServerName> favoredNodes,
int currentServerIndex) |
private int |
pickLeastLoadedServer(BaseLoadBalancer.Cluster cluster,
int thisServer) |
private int |
pickMostLoadedServer(BaseLoadBalancer.Cluster cluster) |
getAction, getRandomIterationOrder, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
FavoredNodeLoadPicker()
BaseLoadBalancer.Cluster.Action generate(BaseLoadBalancer.Cluster cluster)
generate
in class StochasticLoadBalancer.CandidateGenerator
private int pickLeastLoadedServer(BaseLoadBalancer.Cluster cluster, int thisServer)
private int pickLeastLoadedFNServer(BaseLoadBalancer.Cluster cluster, List<ServerName> favoredNodes, int currentServerIndex)
private int pickMostLoadedServer(BaseLoadBalancer.Cluster cluster)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.