@InterfaceAudience.Private public class RegionNormalizerManager extends Object implements PropagatingConfigurationObserver
RegionNormalizer subsystem.| Modifier and Type | Method and Description |
|---|---|
void |
deregisterChildren(ConfigurationManager manager) |
long |
getMergePlanCount()
Return the number of times a
MergeNormalizationPlan has been submitted. |
ScheduledChore |
getRegionNormalizerChore() |
long |
getSkippedCount(NormalizationPlan.PlanType type)
Retrieve a count of the number of times plans of type
type were submitted but skipped. |
long |
getSplitPlanCount()
Return the number of times a
SplitNormalizationPlan has been submitted. |
boolean |
isNormalizerOn()
Return
true if region normalizer is on, false otherwise |
boolean |
normalizeRegions(List<TableName> tables,
boolean isHighPriority)
Submit tables for normalization.
|
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration conf) |
void |
planSkipped(NormalizationPlan.PlanType type)
Call-back for the case where plan couldn't be executed due to constraint violation, such as
namespace quota.
|
void |
registerChildren(ConfigurationManager manager) |
void |
setNormalizerOn(boolean normalizerOn)
Set region normalizer on/off
|
void |
start() |
void |
stop() |
public void registerChildren(ConfigurationManager manager)
registerChildren in interface PropagatingConfigurationObserverpublic void deregisterChildren(ConfigurationManager manager)
deregisterChildren in interface PropagatingConfigurationObserverpublic void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange in interface ConfigurationObserverpublic void start()
public void stop()
public ScheduledChore getRegionNormalizerChore()
public boolean isNormalizerOn()
true if region normalizer is on, false otherwisepublic void setNormalizerOn(boolean normalizerOn)
throws IOException
normalizerOn - whether normalizer should be on or offIOExceptionpublic void planSkipped(NormalizationPlan.PlanType type)
type - type of plan that was skipped.public long getSkippedCount(NormalizationPlan.PlanType type)
type were submitted but skipped.type - type of plan for which skipped count is to be returnedpublic long getSplitPlanCount()
SplitNormalizationPlan has been submitted.public long getMergePlanCount()
MergeNormalizationPlan has been submitted.public boolean normalizeRegions(List<TableName> tables, boolean isHighPriority)
tables - a list of tables to submit.isHighPriority - true when these requested tables should skip to the front of the
queue.true when work was queued, false otherwise.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.