public class SegmentRevisionGCMBean extends org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean implements SegmentRevisionGC
TYPE| Constructor and Description |
|---|
SegmentRevisionGCMBean(FileStore fileStore,
SegmentGCOptions gcOptions,
FileStoreGCMonitor fileStoreGCMonitor) |
| 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() |
long |
getLastCleanup() |
long |
getLastCompaction() |
String |
getLastError() |
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() |
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 |
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
|
getDescription, getDescription, getDescription, getDescription, getImpact, getParameterNamecacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic SegmentRevisionGCMBean(@Nonnull FileStore fileStore, @Nonnull SegmentGCOptions gcOptions, @Nonnull FileStoreGCMonitor fileStoreGCMonitor)
public boolean isPausedCompaction()
isPausedCompaction in interface SegmentRevisionGCtrue iff revision gc is paused.public void setPausedCompaction(boolean paused)
SegmentRevisionGCsetPausedCompaction in interface SegmentRevisionGCpublic int getRetryCount()
SegmentRevisionGCgetRetryCount in interface SegmentRevisionGCpublic void setRetryCount(int retryCount)
SegmentRevisionGCsetRetryCount in interface SegmentRevisionGCpublic int getForceTimeout()
SegmentRevisionGCgetForceTimeout in interface SegmentRevisionGCpublic void setForceTimeout(int timeout)
SegmentRevisionGCsetForceTimeout in interface SegmentRevisionGCtimeout - the number of seconds until forced compaction gives up and the exclusive
lock on the node store is released.public int getRetainedGenerations()
SegmentRevisionGCgetRetainedGenerations in interface SegmentRevisionGCSegmentRevisionGC.setRetainedGenerations(int)public void setRetainedGenerations(int retainedGenerations)
SegmentRevisionGCretainGenerations determines how many of
those generations are retained during cleanup.setRetainedGenerations in interface SegmentRevisionGCretainedGenerations - number of generations to retain. Must be >= 2.public long getGcSizeDeltaEstimation()
getGcSizeDeltaEstimation in interface SegmentRevisionGCpublic void setGcSizeDeltaEstimation(long gcSizeDeltaEstimation)
setGcSizeDeltaEstimation in interface SegmentRevisionGCpublic boolean isEstimationDisabled()
isEstimationDisabled in interface SegmentRevisionGCpublic void setEstimationDisabled(boolean disabled)
SegmentRevisionGCsetEstimationDisabled in interface SegmentRevisionGCpublic void startRevisionGC()
SegmentRevisionGCstartRevisionGC in interface SegmentRevisionGCpublic void cancelRevisionGC()
SegmentRevisionGCcancelRevisionGC in interface SegmentRevisionGCpublic long getLastCompaction()
getLastCompaction in interface SegmentRevisionGCpublic long getLastCleanup()
getLastCleanup in interface SegmentRevisionGCpublic long getLastRepositorySize()
getLastRepositorySize in interface SegmentRevisionGCpublic long getLastReclaimedSize()
getLastReclaimedSize in interface SegmentRevisionGC@CheckForNull public String getLastError()
getLastError in interface SegmentRevisionGCnull if none.@Nonnull public String getLastLogMessage()
getLastLogMessage in interface SegmentRevisionGCnull if none.@Nonnull public String getStatus()
getStatus in interface SegmentRevisionGCpublic int getMemoryThreshold()
SegmentRevisionGCgetMemoryThreshold in interface SegmentRevisionGCpublic void setMemoryThreshold(int memoryThreshold)
SegmentRevisionGC0 and
100 is expected. Setting this to 0 will disable the
check.setMemoryThreshold in interface SegmentRevisionGCpublic boolean isRevisionGCRunning()
isRevisionGCRunning in interface SegmentRevisionGCtrue if there is an online compaction cycle runningpublic long getCompactedNodes()
getCompactedNodes in interface SegmentRevisionGCpublic long getEstimatedCompactableNodes()
getEstimatedCompactableNodes in interface SegmentRevisionGC-1 if the estimation can't be performedpublic int getEstimatedRevisionGCCompletion()
getEstimatedRevisionGCCompletion in interface SegmentRevisionGC-1 if the estimation can't be performed.public long getRevisionGCProgressLog()
getRevisionGCProgressLog in interface SegmentRevisionGC-1 means disabledpublic void setRevisionGCProgressLog(long gcProgressLog)
SegmentRevisionGC-1 means disabledsetRevisionGCProgressLog in interface SegmentRevisionGCgcProgressLog - number of nodesCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.