Package org.apache.hadoop.hbase.mob
Class MobFileCleanerChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.mob.MobFileCleanerChore
- All Implemented Interfaces:
Runnable,ConfigurationObserver
The class MobFileCleanerChore for running cleaner regularly to remove the expired and obsolete
(files which have no active references to) mob files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExpiredMobFileCleanerprivate final intprivate final ThreadPoolExecutorprivate static final org.slf4j.Loggerprivate final HMasterprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcancelAllFutures(List<Future<?>> futureList) private voidprotected voidchore()The task to execute on each scheduled execution of the Choreprivate voidvoidonConfigurationChange(org.apache.hadoop.conf.Configuration conf) This method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.private voidresizeThreadPool(int newCoreSize, int newMaxSize) Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
master
-
cleaner
-
executor
-
cleanerFutureTimeout
-
threadCount
-
-
Constructor Details
-
MobFileCleanerChore
-
-
Method Details
-
checkObsoleteConfigurations
-
chore
Description copied from class:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
chorein classScheduledChore
-
cancelAllFutures
-
handleOneTable
-
onConfigurationChange
Description copied from interface:ConfigurationObserverThis method would be called by theConfigurationManagerobject when theConfigurationobject is reloaded from disk.- Specified by:
onConfigurationChangein interfaceConfigurationObserver
-
resizeThreadPool
-
getExecutor
-