Package org.apache.jackrabbit.oak.spi.gc
Interface GCMonitor
- All Known Implementing Classes:
DelegatingGCMonitor,GCMonitor.Empty,GCMonitorTracker,LoggingGCMonitor
public interface GCMonitor
GCMonitor instance are used to monitor garbage collection.
Instances of GCMonitor are registered to the Whiteboard
to receive notifications regarding garbage collection.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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.
-
Field Details
-
EMPTY
-
-
Method Details
-
info
Informal notification on the progress of garbage collection.- Parameters:
message- The message with {} place holders for theargumentsarguments-
-
warn
Warning about a condition that might have adverse effects on the overall garbage collection process but does not prevent the process from running.- Parameters:
message- The message with {} place holders for theargumentsarguments-
-
error
An error caused the garbage collection process to terminate prematurely.- Parameters:
message-exception-
-
skipped
A garbage collection cycle is skipped for a specificreason.- Parameters:
reason- The reason with {} place holders for theargumentsarguments-
-
compacted
void compacted()The compaction phase of the garbage collection process terminated successfully. -
cleaned
void cleaned(long reclaimedSize, long currentSize) The cleanup phase of the garbage collection process terminated successfully.- Parameters:
reclaimedSize- number of bytes reclaimedcurrentSize- number of bytes after garbage collection
-
updateStatus
The garbage collection entered a new phase e.g. idle, estimation, etc.- Parameters:
status- short summary of the GC phase
-