Class ExternalCompactionExecutor
- java.lang.Object
-
- org.apache.accumulo.tserver.compactions.ExternalCompactionExecutor
-
- All Implemented Interfaces:
CompactionExecutor
public class ExternalCompactionExecutor extends Object implements CompactionExecutor
Runs compactions outside the tserver, typically by a process external to Accumulo.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.tserver.compactions.CompactionExecutor
CompactionExecutor.CType
-
-
Constructor Summary
Constructors Constructor Description ExternalCompactionExecutor(CompactionExecutorId ceid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compactableClosed(KeyExtent extent)
int
getCompactionsQueued(CompactionExecutor.CType ctype)
int
getCompactionsRunning(CompactionExecutor.CType ctype)
CompactionExecutorId
getId()
void
stop()
SubmittedJob
submit(CompactionServiceId csid, CompactionJob job, Compactable compactable, Consumer<Compactable> completionCallback)
Stream<TCompactionQueueSummary>
summarize()
-
-
-
Constructor Detail
-
ExternalCompactionExecutor
public ExternalCompactionExecutor(CompactionExecutorId ceid)
-
-
Method Detail
-
submit
public SubmittedJob submit(CompactionServiceId csid, CompactionJob job, Compactable compactable, Consumer<Compactable> completionCallback)
- Specified by:
submit
in interfaceCompactionExecutor
-
getCompactionsRunning
public int getCompactionsRunning(CompactionExecutor.CType ctype)
- Specified by:
getCompactionsRunning
in interfaceCompactionExecutor
-
getCompactionsQueued
public int getCompactionsQueued(CompactionExecutor.CType ctype)
- Specified by:
getCompactionsQueued
in interfaceCompactionExecutor
-
stop
public void stop()
- Specified by:
stop
in interfaceCompactionExecutor
-
summarize
public Stream<TCompactionQueueSummary> summarize()
-
getId
public CompactionExecutorId getId()
-
compactableClosed
public void compactableClosed(KeyExtent extent)
- Specified by:
compactableClosed
in interfaceCompactionExecutor
-
-