@InterfaceAudience.LimitedPrivate(value="Tools") public class MajorCompactor extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
MajorCompactor.Compact |
Modifier and Type | Field and Description |
---|---|
private ClusterCompactionQueues |
clusterCompactionQueues |
private Connection |
connection |
private static Set<MajorCompactionRequest> |
ERRORS |
private ExecutorService |
executor |
private static org.slf4j.Logger |
LOG |
private long |
sleepForMs |
private Set<String> |
storesToCompact |
private TableName |
tableName |
private long |
timestamp |
Constructor and Description |
---|
MajorCompactor(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
Set<String> storesToCompact,
int concurrency,
long timestamp,
long sleepForMs) |
Modifier and Type | Method and Description |
---|---|
private void |
addNewRegions() |
void |
compactAllRegions() |
private boolean |
futuresComplete(List<Future<?>> futures) |
(package private) void |
initializeWorkQueues() |
private boolean |
isCompacting(MajorCompactionRequest request) |
static void |
main(String[] args) |
private static void |
printUsage(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) |
void |
shutdown() |
private static final org.slf4j.Logger LOG
private static final Set<MajorCompactionRequest> ERRORS
private final ClusterCompactionQueues clusterCompactionQueues
private final long timestamp
private final Set<String> storesToCompact
private final ExecutorService executor
private final long sleepForMs
private final Connection connection
public MajorCompactor(org.apache.hadoop.conf.Configuration conf, TableName tableName, Set<String> storesToCompact, int concurrency, long timestamp, long sleepForMs) throws IOException
IOException
public void compactAllRegions() throws Exception
Exception
private boolean futuresComplete(List<Future<?>> futures)
void initializeWorkQueues() throws IOException
IOException
private boolean isCompacting(MajorCompactionRequest request) throws Exception
Exception
private void addNewRegions()
private static void printUsage(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.