public class FileStoreGCMonitor extends AnnotatedStandardMBean implements 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.
GCMonitor.EmptyTYPE| Constructor and Description |
|---|
FileStoreGCMonitor(Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleaned(long reclaimed,
long current)
The cleanup phase of the garbage collection process terminated successfully.
|
void |
compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights)
The compaction phase of the garbage collection process terminated successfully.
|
void |
error(String message,
Exception exception)
An error caused the garbage collection process to terminate prematurely.
|
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)
Informal notification on the progress of garbage collection.
|
void |
run() |
void |
skipped(String reason,
Object... arguments)
A garbage collection cycle is skipped for a specific
reason. |
void |
warn(String message,
Object... arguments)
Warning about a condition that might have advert effects on the overall
garbage collection process but does not prevent the process from running.
|
getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic FileStoreGCMonitor(Clock clock)
public void info(String message, Object... arguments)
GCMonitorpublic void warn(String message, Object... arguments)
GCMonitorpublic void error(String message, Exception exception)
GCMonitorpublic void skipped(String reason, Object... arguments)
GCMonitorreason.public void compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights)
GCMonitorcompacted in interface GCMonitorsegmentCounts - number of segments in the individual generations of the maprecordCounts - number of records in the individual generations of the mapcompactionMapWeights - weights of the individual generations of the mapPartialCompactionMappublic void cleaned(long reclaimed,
long current)
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.public String getStatus()
getStatus in interface GCMonitorMBeanpublic String getCompactionMapStats()
GCMonitorMBeangetCompactionMapStats in interface GCMonitorMBeanpublic CompositeData getRepositorySize()
getRepositorySize in interface GCMonitorMBeanpublic CompositeData getReclaimedSize()
getReclaimedSize in interface GCMonitorMBean"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"