public class LoggingGCMonitor extends java.lang.Object implements GCMonitor
GCMonitor implementation logs all calls to its
info(String, Object...), warn(String, Object...),
error(String, Exception) and skipped(String, Object...)
methods at the respective levels using the logger instance passed to the
constructor.GCMonitor.Empty| Constructor and Description |
|---|
LoggingGCMonitor(Logger log)
New instance logging to
log |
| Modifier and Type | Method and Description |
|---|---|
void |
cleaned(long reclaimedSize,
long currentSize)
The cleanup phase of the garbage collection process terminated successfully.
|
void |
compacted()
The compaction phase of the garbage collection process terminated successfully.
|
void |
error(java.lang.String message,
java.lang.Exception exception)
An error caused the garbage collection process to terminate prematurely.
|
void |
info(java.lang.String message,
java.lang.Object... arguments)
Informal notification on the progress of garbage collection.
|
void |
skipped(java.lang.String reason,
java.lang.Object... arguments)
A garbage collection cycle is skipped for a specific
reason. |
void |
updateStatus(java.lang.String status)
The garbage collection entered a new phase e.g.
|
void |
warn(java.lang.String message,
java.lang.Object... arguments)
Warning about a condition that might have adverse effects on the overall
garbage collection process but does not prevent the process from running.
|
public LoggingGCMonitor(Logger log)
loglog - public void info(java.lang.String message,
java.lang.Object... arguments)
GCMonitorpublic void warn(java.lang.String message,
java.lang.Object... arguments)
GCMonitorpublic void error(java.lang.String message,
java.lang.Exception exception)
GCMonitorpublic void skipped(java.lang.String reason,
java.lang.Object... arguments)
GCMonitorreason.public void compacted()
GCMonitorpublic void cleaned(long reclaimedSize,
long currentSize)
GCMonitorpublic void updateStatus(java.lang.String status)
GCMonitorupdateStatus in interface GCMonitorstatus - short summary of the GC phaseCopyright © 2010 - 2023 Adobe. All Rights Reserved