public final class RogLogCompactor extends RogObject
| Modifier and Type | Class and Description |
|---|---|
static class |
RogLogCompactor.Params
Contains parameters for compaction.
|
static class |
RogLogCompactor.State
Enmerates the various compactor states
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_COMPACTION_THRESHOLD
|
| Modifier and Type | Method and Description |
|---|---|
RogLogCompactor |
compact()
Perform the log compaction
This method kicks off the background compaction of the live transaction
log file.
|
RogLogCompactor.State |
getState()
Get the current compaction state
|
boolean |
isCompactionInProgress()
Get is compaction is in progress
|
void |
stop()
Stop any running compaction
|
void |
waitForCompactionToComplete()
Wait for compaction to complete
|
getChecked, getThreaded, getTracerpublic static final String PROP_COMPACTION_THRESHOLD
public final RogLogCompactor.State getState()
public final RogLogCompactor compact()
This method kicks off the background compaction of the live transaction
log file. The caller can track the status of the compaction by polling
the state via the getState() method.
public final boolean isCompactionInProgress()
public final void waitForCompactionToComplete()
throws Exception
Exceptionpublic final void stop()
Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.