private class FavoredStochasticBalancer.FavoredNodeLocalityPicker extends CandidateGenerator
Modifier | Constructor and Description |
---|---|
private |
FavoredNodeLocalityPicker() |
Modifier and Type | Method and Description |
---|---|
protected BalanceAction |
generate(BalancerClusterState cluster) |
private int |
getDifferentFavoredNode(BalancerClusterState cluster,
List<ServerName> favoredNodes,
int currentServer) |
private int |
pickLowestLocalRegionOnServer(BalancerClusterState cluster,
int server) |
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
private FavoredNodeLocalityPicker()
protected BalanceAction generate(BalancerClusterState cluster)
generate
in class CandidateGenerator
private int getDifferentFavoredNode(BalancerClusterState cluster, List<ServerName> favoredNodes, int currentServer)
private int pickLowestLocalRegionOnServer(BalancerClusterState cluster, int server)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.