public class FileStoreGCMonitor extends Object 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.Empty
TYPE
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()
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 |
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.
|
public FileStoreGCMonitor(Clock clock)
public void info(String message, Object... arguments)
GCMonitor
public void warn(String message, Object... arguments)
GCMonitor
public void error(String message, Exception exception)
GCMonitor
public void skipped(String reason, Object... arguments)
GCMonitor
reason
.public void compacted()
GCMonitor
public void cleaned(long reclaimed, long current)
GCMonitor
public String getLastCompaction()
getLastCompaction
in interface GCMonitorMBean
null
if none.public String getLastCleanup()
getLastCleanup
in interface GCMonitorMBean
null
if none.public String getLastError()
getLastError
in interface GCMonitorMBean
null
if none.public String getStatus()
getStatus
in interface GCMonitorMBean
public CompositeData getRepositorySize()
getRepositorySize
in interface GCMonitorMBean
public CompositeData getReclaimedSize()
getReclaimedSize
in interface GCMonitorMBean
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"