Package org.apache.jackrabbit.oak.spi.gc
Class GCMonitorTracker
java.lang.Object
org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<GCMonitor>
org.apache.jackrabbit.oak.spi.gc.GCMonitorTracker
- All Implemented Interfaces:
GCMonitor
This
GCMonitor
implementation tracks GCMonitor
instances registered
to the Whiteboard
delegating all calls to to those.-
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 TypeMethodDescriptionvoid
cleaned
(long reclaimedSize, long currentSize) The cleanup phase of the garbage collection process terminated successfully.void
The compaction phase of the garbage collection process terminated successfully.void
An error caused the garbage collection process to terminate prematurely.void
Informal notification on the progress of garbage collection.void
A garbage collection cycle is skipped for a specificreason
.void
updateStatus
(String status) The garbage collection entered a new phase e.g.void
Warning about a condition that might have adverse effects on the overall garbage collection process but does not prevent the process from running.Methods inherited from class org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker
getServices, start, stop
-
Constructor Details
-
GCMonitorTracker
public GCMonitorTracker()
-
-
Method Details
-
info
Description copied from interface:GCMonitor
Informal notification on the progress of garbage collection. -
warn
Description copied from interface:GCMonitor
Warning 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:GCMonitor
An error caused the garbage collection process to terminate prematurely. -
skipped
Description copied from interface:GCMonitor
A garbage collection cycle is skipped for a specificreason
. -
compacted
public void compacted()Description copied from interface:GCMonitor
The compaction phase of the garbage collection process terminated successfully. -
cleaned
public void cleaned(long reclaimedSize, long currentSize) Description copied from interface:GCMonitor
The cleanup phase of the garbage collection process terminated successfully. -
updateStatus
Description copied from interface:GCMonitor
The garbage collection entered a new phase e.g. idle, estimation, etc.- Specified by:
updateStatus
in interfaceGCMonitor
- Parameters:
status
- short summary of the GC phase
-