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
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private DirScanPool.Type
private static final org.slf4j.Logger
private final String
private final ThreadPoolExecutor
private boolean
private int
-
Constructor Summary
ModifierConstructorDescriptionprivate
DirScanPool
(org.apache.hadoop.conf.Configuration conf, DirScanPool.Type dirScanPoolType) private
DirScanPool
(DirScanPool.Type dirScanPoolType, String poolSize) -
Method Summary
Modifier and TypeMethodDescription(package private) void
static DirScanPool
getHFileCleanerScanPool
(String poolSize) static DirScanPool
getHFileCleanerScanPool
(org.apache.hadoop.conf.Configuration conf) static DirScanPool
getLogCleanerScanPool
(org.apache.hadoop.conf.Configuration conf) int
getSize()
private static ThreadPoolExecutor
initializePool
(int size, String name) (package private) void
(package private) void
void
onConfigurationChange
(org.apache.hadoop.conf.Configuration conf) Checks if pool can be updated.void
(package private) void
tryUpdatePoolSize
(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:
onConfigurationChange
in interfaceConfigurationObserver
- Parameters:
conf
- configuration
-
latchCountUp
void latchCountUp() -
latchCountDown
void latchCountDown() -
execute
-
shutdownNow
-
tryUpdatePoolSize
-
getSize
-
getHFileCleanerScanPool
-
getHFileCleanerScanPool
-
getLogCleanerScanPool
-