Class RegionNormalizerManager
java.lang.Object
org.apache.hadoop.hbase.master.normalizer.RegionNormalizerManager
- All Implemented Interfaces:
 ConfigurationObserver,PropagatingConfigurationObserver
@Private
public class RegionNormalizerManager
extends Object
implements PropagatingConfigurationObserver
This class encapsulates the details of the 
RegionNormalizer subsystem.- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final ExecutorServiceprivate final RegionNormalizerChoreprivate final RegionNormalizerStateStoreprivate booleanprivate final Objectprivate booleanprivate final RegionNormalizerWorkerprivate final RegionNormalizerWorkQueue<TableName> - 
Constructor Summary
ConstructorsConstructorDescriptionRegionNormalizerManager(RegionNormalizerStateStore regionNormalizerStateStore, RegionNormalizerChore regionNormalizerChore, RegionNormalizerWorkQueue<TableName> workQueue, RegionNormalizerWorker worker)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterChildren(ConfigurationManager manager) Needs to be called to deregister the children from the manager.longReturn the number of times aMergeNormalizationPlanhas been submitted.longRetrieve a count of the number of times plans of typetypewere submitted but skipped.longReturn the number of times aSplitNormalizationPlanhas been submitted.booleanReturntrueif region normalizer is on,falseotherwisebooleannormalizeRegions(List<TableName> tables, boolean isHighPriority) Submit tables for normalization.voidonConfigurationChange(org.apache.hadoop.conf.Configuration conf) This method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.voidCall-back for the case where plan couldn't be executed due to constraint violation, such as namespace quota.voidregisterChildren(ConfigurationManager manager) Needs to be called to register the children to the manager.voidsetNormalizerOn(boolean normalizerOn) Set region normalizer on/offvoidstart()voidstop() 
- 
Field Details
- 
LOG
 - 
regionNormalizerStateStore
 - 
regionNormalizerChore
 - 
workQueue
 - 
worker
 - 
pool
 - 
startStopLock
 - 
started
 - 
stopped
 
 - 
 - 
Constructor Details
- 
RegionNormalizerManager
RegionNormalizerManager(@NonNull RegionNormalizerStateStore regionNormalizerStateStore, @Nullable RegionNormalizerChore regionNormalizerChore, @Nullable RegionNormalizerWorkQueue<TableName> workQueue, @Nullable RegionNormalizerWorker worker)  
 - 
 - 
Method Details
- 
registerChildren
Description copied from interface:PropagatingConfigurationObserverNeeds to be called to register the children to the manager.- Specified by:
 registerChildrenin interfacePropagatingConfigurationObserver- Parameters:
 manager- : to register to
 - 
deregisterChildren
Description copied from interface:PropagatingConfigurationObserverNeeds to be called to deregister the children from the manager.- Specified by:
 deregisterChildrenin interfacePropagatingConfigurationObserver- Parameters:
 manager- : to deregister from
 - 
onConfigurationChange
Description copied from interface:ConfigurationObserverThis method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.- Specified by:
 onConfigurationChangein interfaceConfigurationObserver
 - 
start
 - 
stop
 - 
getRegionNormalizerChore
 - 
isNormalizerOn
Returntrueif region normalizer is on,falseotherwise - 
setNormalizerOn
Set region normalizer on/off- Parameters:
 normalizerOn- whether normalizer should be on or off- Throws:
 IOException
 - 
planSkipped
Call-back for the case where plan couldn't be executed due to constraint violation, such as namespace quota.- Parameters:
 type- type of plan that was skipped.
 - 
getSkippedCount
Retrieve a count of the number of times plans of typetypewere submitted but skipped.- Parameters:
 type- type of plan for which skipped count is to be returned
 - 
getSplitPlanCount
Return the number of times aSplitNormalizationPlanhas been submitted. - 
getMergePlanCount
Return the number of times aMergeNormalizationPlanhas been submitted. - 
normalizeRegions
Submit tables for normalization.- Parameters:
 tables- a list of tables to submit.isHighPriority-truewhen these requested tables should skip to the front of the queue.- Returns:
 truewhen work was queued,falseotherwise.
 
 -