Package org.apache.jackrabbit.oak.spi.gc
Class LoggingGCMonitor
java.lang.Object
org.apache.jackrabbit.oak.spi.gc.LoggingGCMonitor
- All Implemented Interfaces:
GCMonitor
This
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
GCMonitor.Empty -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleaned(long reclaimedSize, long currentSize) The cleanup phase of the garbage collection process terminated successfully.voidThe compaction phase of the garbage collection process terminated successfully.voidAn error caused the garbage collection process to terminate prematurely.voidInformal notification on the progress of garbage collection.voidA garbage collection cycle is skipped for a specificreason.voidupdateStatus(String status) The garbage collection entered a new phase e.g.voidWarning about a condition that might have adverse effects on the overall garbage collection process but does not prevent the process from running.
-
Constructor Details
-
LoggingGCMonitor
New instance logging tolog- Parameters:
log-
-
-
Method Details
-
info
Description copied from interface:GCMonitorInformal notification on the progress of garbage collection. -
warn
Description copied from interface:GCMonitorWarning about a condition that might have adverse effects on the overall garbage collection process but does not prevent the process from running. -
error
Description copied from interface:GCMonitorAn error caused the garbage collection process to terminate prematurely. -
skipped
Description copied from interface:GCMonitorA garbage collection cycle is skipped for a specificreason. -
compacted
public void compacted()Description copied from interface:GCMonitorThe compaction phase of the garbage collection process terminated successfully. -
cleaned
public void cleaned(long reclaimedSize, long currentSize) Description copied from interface:GCMonitorThe cleanup phase of the garbage collection process terminated successfully. -
updateStatus
Description copied from interface:GCMonitorThe garbage collection entered a new phase e.g. idle, estimation, etc.- Specified by:
updateStatusin interfaceGCMonitor- Parameters:
status- short summary of the GC phase
-