Class CacheAwareLoadBalancer.CacheAwareCandidateGenerator
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CandidateGenerator
org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer.CacheAwareCandidateGenerator
- Enclosing class:
- CacheAwareLoadBalancer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BalanceAction
generate
(BalancerClusterState cluster) private BalanceAction
generatePlan
(BalancerClusterState cluster, int regionIndex, int currentServerIndex, float cacheRatioOnCurrentServer, int oldServerIndex, float cacheRatioOnOldServer) private boolean
moveRegionToOldServer
(BalancerClusterState cluster, int regionIndex, int currentServerIndex, float cacheRatioOnCurrentServer, int oldServerIndex, float cacheRatioOnOldServer) Methods inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
-
Constructor Details
-
CacheAwareCandidateGenerator
private CacheAwareCandidateGenerator()
-
-
Method Details
-
generate
- Specified by:
generate
in classCandidateGenerator
-
generatePlan
private BalanceAction generatePlan(BalancerClusterState cluster, int regionIndex, int currentServerIndex, float cacheRatioOnCurrentServer, int oldServerIndex, float cacheRatioOnOldServer) -
moveRegionToOldServer
private boolean moveRegionToOldServer(BalancerClusterState cluster, int regionIndex, int currentServerIndex, float cacheRatioOnCurrentServer, int oldServerIndex, float cacheRatioOnOldServer)
-