Class LocalityBasedCandidateGenerator
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CandidateGenerator
org.apache.hadoop.hbase.master.balancer.LocalityBasedCandidateGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) BalanceAction
generate
(BalancerClusterState cluster) private double
getWeightedLocality
(BalancerClusterState cluster, int region, int server) private Optional<BalanceAction>
tryMoveOrSwap
(BalancerClusterState cluster, int fromServer, int fromRegion, int toServer) Methods inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
-
Constructor Details
-
LocalityBasedCandidateGenerator
-
-
Method Details
-
generate
- Specified by:
generate
in classCandidateGenerator
-
tryMoveOrSwap
private Optional<BalanceAction> tryMoveOrSwap(BalancerClusterState cluster, int fromServer, int fromRegion, int toServer) -
getWeightedLocality
-