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