@InterfaceAudience.Private public class MasterMobCompactionThread extends Object
MasterRpcServices
Modifier and Type | Class and Description |
---|---|
private class |
MasterMobCompactionThread.CompactionRunner |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
(package private) static org.slf4j.Logger |
LOG |
private HMaster |
master |
private ExecutorService |
masterMobPool |
private ExecutorService |
mobCompactorPool |
Constructor and Description |
---|
MasterMobCompactionThread(HMaster master) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the MasterMobCompactionThread.
|
private void |
interruptIfNecessary()
Only interrupt once it's done with a run through the work loop.
|
private void |
join()
Wait for all the threads finish.
|
void |
requestMobCompaction(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
List<ColumnFamilyDescriptor> columns,
boolean allFiles)
Requests mob compaction
|
private void |
waitFor(ExecutorService t,
String name)
Wait for thread finish.
|
static final org.slf4j.Logger LOG
private final org.apache.hadoop.conf.Configuration conf
private final ExecutorService mobCompactorPool
private final ExecutorService masterMobPool
public MasterMobCompactionThread(HMaster master)
public void requestMobCompaction(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, TableName tableName, List<ColumnFamilyDescriptor> columns, boolean allFiles) throws IOException
conf
- The Configurationfs
- The file systemtableName
- The table the compactcolumns
- The column descriptorsallFiles
- Whether add all mob files into the compaction.IOException
private void interruptIfNecessary()
private void join()
public void close()
private void waitFor(ExecutorService t, String name)
t
- the thread to waitname
- the thread name.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.