public class SegmentRevisionGCMBean extends org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean implements SegmentRevisionGC
TYPE
Constructor and Description |
---|
SegmentRevisionGCMBean(SegmentGCOptions gcOptions) |
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
|
getDescription, getDescription, getDescription, getDescription, getImpact, getParameterName
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public SegmentRevisionGCMBean(SegmentGCOptions gcOptions)
public boolean isPausedCompaction()
isPausedCompaction
in interface SegmentRevisionGC
true
iff revision gc is paused.public void setPausedCompaction(boolean paused)
SegmentRevisionGC
setPausedCompaction
in interface SegmentRevisionGC
public int getGainThreshold()
SegmentRevisionGC
getGainThreshold
in interface SegmentRevisionGC
public void setGainThreshold(int gainThreshold)
SegmentRevisionGC
setGainThreshold
in interface SegmentRevisionGC
public int getRetryCount()
SegmentRevisionGC
getRetryCount
in interface SegmentRevisionGC
public void setRetryCount(int retryCount)
SegmentRevisionGC
setRetryCount
in interface SegmentRevisionGC
public int getForceTimeout()
SegmentRevisionGC
getForceTimeout
in interface SegmentRevisionGC
public void setForceTimeout(int timeout)
SegmentRevisionGC
setForceTimeout
in interface SegmentRevisionGC
timeout
- the number of seconds until forced compaction gives up and the exclusive
lock on the node store is released.public int getRetainedGenerations()
SegmentRevisionGC
getRetainedGenerations
in interface SegmentRevisionGC
SegmentRevisionGC.setRetainedGenerations(int)
public void setRetainedGenerations(int retainedGenerations)
SegmentRevisionGC
retainGenerations
determines how many of
those generations are retained during cleanup.setRetainedGenerations
in interface SegmentRevisionGC
retainedGenerations
- number of generations to retain. Must be >= 2
.public long getGcSizeDeltaEstimation()
getGcSizeDeltaEstimation
in interface SegmentRevisionGC
public void setGcSizeDeltaEstimation(long gcSizeDeltaEstimation)
setGcSizeDeltaEstimation
in interface SegmentRevisionGC
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.