static class StochasticLoadBalancer.LoadCandidateGenerator extends StochasticLoadBalancer.CandidateGenerator
Constructor and Description |
---|
StochasticLoadBalancer.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, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
StochasticLoadBalancer.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.