Class TableIsolationCandidateGenerator
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CandidateGenerator
org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator
org.apache.hadoop.hbase.master.balancer.TableIsolationCandidateGenerator
- Direct Known Subclasses:
MetaTableIsolationCandidateGenerator
@Private
public abstract class TableIsolationCandidateGenerator
extends RegionPlanConditionalCandidateGenerator
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
MAX_WEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BalanceAction
generate
(BalancerClusterState cluster) (package private) BalanceAction
generateCandidate
(BalancerClusterState cluster, boolean isWeighing) Generates a balancing action to appease the conditional.(package private) abstract boolean
shouldBeIsolated
(RegionInfo regionInfo) Methods inherited from class org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator
batchMovesAndResetClusterState, clearWeightCache, getBalancerConditionals, getWeight, undoBatchAction, willBeAccepted
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
-
Field Details
-
LOG
-
-
Constructor Details
-
TableIsolationCandidateGenerator
TableIsolationCandidateGenerator(BalancerConditionals balancerConditionals)
-
-
Method Details
-
shouldBeIsolated
-
generate
- Overrides:
generate
in classRegionPlanConditionalCandidateGenerator
-
generateCandidate
Description copied from class:RegionPlanConditionalCandidateGenerator
Generates a balancing action to appease the conditional.- Specified by:
generateCandidate
in classRegionPlanConditionalCandidateGenerator
- Parameters:
cluster
- Current state of the cluster.isWeighing
- Flag indicating if the generator is being used for weighing.- Returns:
- A BalanceAction, or NULL_ACTION if no action is needed.
-