static class StochasticLoadBalancer.LocalityBasedCandidateGenerator extends StochasticLoadBalancer.CandidateGenerator
Modifier and Type | Field and Description |
---|---|
private MasterServices |
masterServices |
Constructor and Description |
---|
StochasticLoadBalancer.LocalityBasedCandidateGenerator(MasterServices masterServices) |
Modifier and Type | Method and Description |
---|---|
(package private) BaseLoadBalancer.Cluster.Action |
generate(BaseLoadBalancer.Cluster cluster) |
private int |
pickLowestLocalityRegionOnServer(BaseLoadBalancer.Cluster cluster,
int server) |
private int |
pickLowestLocalityServer(BaseLoadBalancer.Cluster cluster) |
(package private) void |
setServices(MasterServices services) |
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
private MasterServices masterServices
StochasticLoadBalancer.LocalityBasedCandidateGenerator(MasterServices masterServices)
BaseLoadBalancer.Cluster.Action generate(BaseLoadBalancer.Cluster cluster)
generate
in class StochasticLoadBalancer.CandidateGenerator
private int pickLowestLocalityServer(BaseLoadBalancer.Cluster cluster)
private int pickLowestLocalityRegionOnServer(BaseLoadBalancer.Cluster cluster, int server)
void setServices(MasterServices services)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.