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,SystemTableIsolationCandidateGenerator
@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) BalanceActiongenerate(BalancerClusterState cluster) (package private) BalanceActiongenerateCandidate(BalancerClusterState cluster, boolean isWeighing) Generates a balancing action to appease the conditional.(package private) abstract booleanshouldBeIsolated(RegionInfo regionInfo) Methods inherited from class org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator
batchMovesAndResetClusterState, clearWeightCache, getBalancerConditionals, getWeight, undoBatchAction, willBeAcceptedMethods 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:
generatein classRegionPlanConditionalCandidateGenerator
-
generateCandidate
Description copied from class:RegionPlanConditionalCandidateGeneratorGenerates a balancing action to appease the conditional.- Specified by:
generateCandidatein 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.
-