@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface CompactionLifeCycleTracker
Modifier and Type | Field and Description |
---|---|
static CompactionLifeCycleTracker |
DUMMY |
Modifier and Type | Method and Description |
---|---|
default void |
afterExecution(Store store)
Called after compaction is executed by CompactSplitThread.
|
default void |
beforeExecution(Store store)
Called before compaction is executed by CompactSplitThread.
|
default void |
completed()
Called after all the requested compactions are completed.
|
default void |
notExecuted(Store store,
String reason)
Called if the compaction request is failed for some reason.
|
static final CompactionLifeCycleTracker DUMMY
default void notExecuted(Store store, String reason)
default void beforeExecution(Store store)
Requesting compaction on a region can lead to multiple compactions on different stores, so we
will pass the Store
in to tell you the store we operate on.
default void afterExecution(Store store)
Requesting compaction on a region can lead to multiple compactions on different stores, so we
will pass the Store
in to tell you the store we operate on.
default void completed()
The compaction scheduling is per Store so if you request a compaction on a region it may lead to multiple compactions.
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.