Package org.apache.jackrabbit.oak.spi.gc
Interface GCMonitor
- 
- All Known Implementing Classes:
 DelegatingGCMonitor,GCMonitor.Empty,GCMonitorTracker,LoggingGCMonitor
public interface GCMonitorGCMonitorinstance are used to monitor garbage collection. Instances ofGCMonitorare registered to theWhiteboardto receive notifications regarding garbage collection. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGCMonitor.Empty 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleaned(long reclaimedSize, long currentSize)The cleanup phase of the garbage collection process terminated successfully.voidcompacted()The compaction phase of the garbage collection process terminated successfully.voiderror(java.lang.String message, java.lang.Exception exception)An error caused the garbage collection process to terminate prematurely.voidinfo(java.lang.String message, java.lang.Object... arguments)Informal notification on the progress of garbage collection.voidskipped(java.lang.String reason, java.lang.Object... arguments)A garbage collection cycle is skipped for a specificreason.voidupdateStatus(java.lang.String status)The garbage collection entered a new phase e.g.voidwarn(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. 
 - 
 
- 
- 
Field Detail
- 
EMPTY
static final GCMonitor EMPTY
 
 - 
 
- 
Method Detail
- 
info
void info(java.lang.String message, java.lang.Object... arguments)Informal notification on the progress of garbage collection.- Parameters:
 message- The message with {} place holders for theargumentsarguments-
 
- 
warn
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.- Parameters:
 message- The message with {} place holders for theargumentsarguments-
 
- 
error
void error(java.lang.String message, java.lang.Exception exception)An error caused the garbage collection process to terminate prematurely.- Parameters:
 message-exception-
 
- 
skipped
void skipped(java.lang.String reason, java.lang.Object... arguments)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
void updateStatus(java.lang.String status)
The garbage collection entered a new phase e.g. idle, estimation, etc.- Parameters:
 status- short summary of the GC phase
 
 - 
 
 -