Class DirScanPool
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.DirScanPool
- All Implemented Interfaces:
ConfigurationObserver
The thread pool used for scan directories
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate DirScanPool.Typeprivate static final org.slf4j.Loggerprivate final Stringprivate final ThreadPoolExecutorprivate booleanprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDirScanPool(org.apache.hadoop.conf.Configuration conf, DirScanPool.Type dirScanPoolType) privateDirScanPool(DirScanPool.Type dirScanPoolType, String poolSize) -
Method Summary
Modifier and TypeMethodDescription(package private) voidstatic DirScanPoolgetHFileCleanerScanPool(String poolSize) static DirScanPoolgetHFileCleanerScanPool(org.apache.hadoop.conf.Configuration conf) static DirScanPoolgetLogCleanerScanPool(org.apache.hadoop.conf.Configuration conf) intgetSize()private static ThreadPoolExecutorinitializePool(int size, String name) (package private) void(package private) voidvoidonConfigurationChange(org.apache.hadoop.conf.Configuration conf) Checks if pool can be updated.void(package private) voidtryUpdatePoolSize(long timeout)
-
Field Details
-
LOG
-
size
-
pool
-
cleanerLatch
-
reconfigNotification
-
dirScanPoolType
-
name
-
-
Constructor Details
-
DirScanPool
-
DirScanPool
-
-
Method Details
-
initializePool
-
onConfigurationChange
Checks if pool can be updated. If so, mark for update later.- Specified by:
onConfigurationChangein interfaceConfigurationObserver- Parameters:
conf- configuration
-
latchCountUp
void latchCountUp() -
latchCountDown
void latchCountDown() -
execute
-
shutdownNow
-
tryUpdatePoolSize
-
getSize
-
getHFileCleanerScanPool
-
getHFileCleanerScanPool
-
getLogCleanerScanPool
-