Class FavoredStochasticBalancer.FavoredNodeLocalityPicker
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CandidateGenerator
org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer.FavoredNodeLocalityPicker
- Enclosing class:
- FavoredStochasticBalancer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BalanceAction
generate
(BalancerClusterState cluster) private int
getDifferentFavoredNode
(BalancerClusterState cluster, List<ServerName> favoredNodes, int currentServer) private int
pickLowestLocalRegionOnServer
(BalancerClusterState cluster, int server) Methods inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
-
Constructor Details
-
FavoredNodeLocalityPicker
private FavoredNodeLocalityPicker()
-
-
Method Details
-
generate
- Specified by:
generate
in classCandidateGenerator
-
getDifferentFavoredNode
private int getDifferentFavoredNode(BalancerClusterState cluster, List<ServerName> favoredNodes, int currentServer) -
pickLowestLocalRegionOnServer
-