@InterfaceAudience.Private class LoadCandidateGenerator extends CandidateGenerator
Constructor and Description |
---|
LoadCandidateGenerator() |
Modifier and Type | Method and Description |
---|---|
(package private) BalanceAction |
generate(BalancerClusterState cluster) |
private int |
pickLeastLoadedServer(BalancerClusterState cluster,
int thisServer) |
private int |
pickMostLoadedServer(BalancerClusterState cluster,
int thisServer) |
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
LoadCandidateGenerator()
BalanceAction generate(BalancerClusterState cluster)
generate
in class CandidateGenerator
private int pickLeastLoadedServer(BalancerClusterState cluster, int thisServer)
private int pickMostLoadedServer(BalancerClusterState cluster, int thisServer)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.