public interface SegmentRevisionGC
SegmentGCOptions
.Modifier and Type | Method and Description |
---|---|
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.
|
int |
getGainThreshold()
Get the gain estimate threshold beyond which revision gc should run
|
long |
getGcSizeDeltaEstimation() |
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
|
boolean |
isPausedCompaction() |
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 |
setGainThreshold(int gainThreshold)
Set the revision gain estimate threshold beyond which revision gc should run
|
void |
setGcSizeDeltaEstimation(long gcSizeDeltaEstimation) |
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
|
static final String TYPE
boolean isPausedCompaction()
true
iff revision gc is paused.void setPausedCompaction(boolean paused)
paused
- int getGainThreshold()
void setGainThreshold(int gainThreshold)
gainThreshold
- 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)
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.