public interface SegmentRevisionGC
SegmentGCOptions
and
reflects the GC status as reported by the GCMonitor
.Modifier and Type | Method and Description |
---|---|
void |
cancelRevisionGC()
Cancel a running revision garbage collection operation.
|
long |
getCompactedNodes() |
long |
getEstimatedCompactableNodes() |
int |
getEstimatedRevisionGCCompletion() |
int |
getForceTimeout()
Get the number of seconds to attempt to force compact concurrent commits on top of
already compacted commits after the maximum number of retries has been reached.
|
long |
getGcSizeDeltaEstimation() |
String |
getGCType() |
long |
getLastCleanup() |
long |
getLastCompaction() |
@Nullable String |
getLastError() |
@NotNull String |
getLastLogMessage() |
long |
getLastReclaimedSize() |
long |
getLastRepositorySize() |
int |
getMemoryThreshold()
Get the available memory threshold beyond which revision gc will be
canceled.
|
int |
getRetainedGenerations()
Number of segment generations to retain.
|
int |
getRetryCount()
Get the number of tries to compact concurrent commits on top of already
compacted commits
|
long |
getRevisionGCProgressLog() |
@NotNull String |
getStatus() |
boolean |
isEstimationDisabled() |
boolean |
isPausedCompaction() |
boolean |
isRevisionGCRunning() |
void |
setEstimationDisabled(boolean disabled)
Disables the estimation phase, thus allowing GC to run every time.
|
void |
setForceTimeout(int timeout)
Set the number of seconds to attempt to force compact concurrent commits on top of
already compacted commits after the maximum number of retries has been reached.
|
void |
setGcSizeDeltaEstimation(long gcSizeDeltaEstimation) |
void |
setGCType(String gcType) |
void |
setMemoryThreshold(int memoryThreshold)
Set the available memory threshold beyond which revision gc will be
canceled.
|
void |
setPausedCompaction(boolean paused)
Set revision gc to paused.
|
void |
setRetainedGenerations(int retainedGenerations)
Set the number of segment generations to retain: each compaction run creates
a new segment generation.
|
void |
setRetryCount(int retryCount)
Set the number of tries to compact concurrent commits on top of already
compacted commits
|
void |
setRevisionGCProgressLog(long gcProgressLog)
Set the size of the logging interval,
-1 means disabled |
void |
startRevisionGC()
Initiate a revision garbage collection operation
|
static final String TYPE
boolean isPausedCompaction()
true
iff revision gc is paused.void setPausedCompaction(boolean paused)
paused
- int getRetryCount()
void setRetryCount(int retryCount)
retryCount
- int getForceTimeout()
void setForceTimeout(int timeout)
timeout
- the number of seconds until forced compaction gives up and the exclusive
lock on the node store is released.int getRetainedGenerations()
setRetainedGenerations(int)
void setRetainedGenerations(int retainedGenerations)
retainGenerations
determines how many of
those generations are retained during cleanup.retainedGenerations
- number of generations to retain. Must be >= 2
.IllegalArgumentException
- if retainGenerations < 2
long getGcSizeDeltaEstimation()
void setGcSizeDeltaEstimation(long gcSizeDeltaEstimation)
boolean isEstimationDisabled()
void setEstimationDisabled(boolean disabled)
disabled
- String getGCType()
void setGCType(String gcType)
void startRevisionGC()
void cancelRevisionGC()
long getLastCompaction()
long getLastCleanup()
long getLastRepositorySize()
long getLastReclaimedSize()
@Nullable @Nullable String getLastError()
null
if none.@NotNull @NotNull String getLastLogMessage()
null
if none.@NotNull @NotNull String getStatus()
int getMemoryThreshold()
void setMemoryThreshold(int memoryThreshold)
0
and
100
is expected. Setting this to 0
will disable the
check.memoryThreshold
- boolean isRevisionGCRunning()
true
if there is an online compaction cycle runninglong getCompactedNodes()
long getEstimatedCompactableNodes()
-1
if the estimation can't be performedint getEstimatedRevisionGCCompletion()
-1
if the estimation can't be performed.long getRevisionGCProgressLog()
-1
means disabledvoid setRevisionGCProgressLog(long gcProgressLog)
-1
means disabledgcProgressLog
- number of nodesCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.