static class StochasticLoadBalancer.LoadCandidateGenerator extends StochasticLoadBalancer.CandidateGenerator
Constructor and Description |
---|
LoadCandidateGenerator() |
Modifier and Type | Method and Description |
---|---|
(package private) BaseLoadBalancer.Cluster.Action |
generate(BaseLoadBalancer.Cluster cluster) |
private int |
pickLeastLoadedServer(BaseLoadBalancer.Cluster cluster,
int thisServer) |
private int |
pickMostLoadedServer(BaseLoadBalancer.Cluster cluster,
int thisServer) |
getAction, getRandomIterationOrder, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
LoadCandidateGenerator()
BaseLoadBalancer.Cluster.Action generate(BaseLoadBalancer.Cluster cluster)
generate
in class StochasticLoadBalancer.CandidateGenerator
private int pickLeastLoadedServer(BaseLoadBalancer.Cluster cluster, int thisServer)
private int pickMostLoadedServer(BaseLoadBalancer.Cluster cluster, int thisServer)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.