public class FileStoreGCMonitor extends org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean implements org.apache.jackrabbit.oak.spi.gc.GCMonitor, GCMonitorMBean, Runnable
GCMonitor implementation providing the file store gc status
as GCMonitorMBean.
Users of this class need to schedule a call to run() once per
second to ensure the various time series maintained by this implementation
are correctly aggregated.
TYPE| Constructor and Description |
|---|
FileStoreGCMonitor(org.apache.jackrabbit.oak.stats.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleaned(long reclaimed,
long current) |
void |
compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights) |
void |
error(String message,
Exception exception) |
String |
getCompactionMapStats()
Statistics about the compaction map.
|
String |
getLastCleanup() |
String |
getLastCompaction() |
String |
getLastError() |
CompositeData |
getReclaimedSize() |
CompositeData |
getRepositorySize() |
String |
getStatus() |
void |
info(String message,
Object... arguments) |
void |
run() |
void |
skipped(String reason,
Object... arguments) |
void |
warn(String message,
Object... arguments) |
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 FileStoreGCMonitor(@Nonnull org.apache.jackrabbit.oak.stats.Clock clock)
public void info(String message, Object... arguments)
info in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic void warn(String message, Object... arguments)
warn in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic void error(String message, Exception exception)
error in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic void skipped(String reason, Object... arguments)
skipped in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic void compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights)
compacted in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic void cleaned(long reclaimed,
long current)
cleaned in interface org.apache.jackrabbit.oak.spi.gc.GCMonitorpublic String getLastCompaction()
getLastCompaction in interface GCMonitorMBeannull if none.public String getLastCleanup()
getLastCleanup in interface GCMonitorMBeannull if none.public String getLastError()
getLastError in interface GCMonitorMBeannull if none.@Nonnull public String getStatus()
getStatus in interface GCMonitorMBeanpublic String getCompactionMapStats()
GCMonitorMBeangetCompactionMapStats in interface GCMonitorMBean@Nonnull public CompositeData getRepositorySize()
getRepositorySize in interface GCMonitorMBean@Nonnull public CompositeData getReclaimedSize()
getReclaimedSize in interface GCMonitorMBeanCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.