@InterfaceAudience.Private public class DirScanPool extends Object implements ConfigurationObserver
| Modifier and Type | Field and Description | 
|---|---|
| private int | cleanerLatch | 
| private static org.slf4j.Logger | LOG | 
| private ThreadPoolExecutor | pool | 
| private boolean | reconfigNotification | 
| private int | size | 
| Constructor and Description | 
|---|
| DirScanPool(org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) void | execute(Runnable runnable) | 
| int | getSize() | 
| private static ThreadPoolExecutor | initializePool(int size) | 
| (package private) void | latchCountDown() | 
| (package private) void | latchCountUp() | 
| void | onConfigurationChange(org.apache.hadoop.conf.Configuration conf)Checks if pool can be updated. | 
| void | shutdownNow() | 
| (package private) void | tryUpdatePoolSize(long timeout) | 
private static final org.slf4j.Logger LOG
private volatile int size
private final ThreadPoolExecutor pool
private int cleanerLatch
private boolean reconfigNotification
public DirScanPool(org.apache.hadoop.conf.Configuration conf)
private static ThreadPoolExecutor initializePool(int size)
public void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange in interface ConfigurationObserverconf - configurationvoid latchCountUp()
void latchCountDown()
public void shutdownNow()
void tryUpdatePoolSize(long timeout)
public int getSize()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.