Class GCLogger
- java.lang.Object
-
- org.silverpeas.core.jcr.impl.oak.factories.GCLogger
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.spi.gc.GCMonitor
public class GCLogger extends Object implements org.apache.jackrabbit.oak.spi.gc.GCMonitor
Logger of garbage collection activity. By putting, modifying and removing some items in the JCR, in order to keep reasonable the performances and the resources allocated by Oak, some compactions are required and mainly with the segment storage. For doing Oak uses a garbage collector. The logger here monitors the activity of this garbage collector and logs messages about this activity.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description GCLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleaned(long reclaimedSize, long currentSize)
void
compacted()
void
error(String message, Exception exception)
void
info(String message, Object... arguments)
void
skipped(String reason, Object... arguments)
void
updateStatus(String status)
void
warn(String message, Object... arguments)
-
-
-
Method Detail
-
info
public void info(String message, Object... arguments)
- Specified by:
info
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
warn
public void warn(String message, Object... arguments)
- Specified by:
warn
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
error
public void error(String message, Exception exception)
- Specified by:
error
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
skipped
public void skipped(String reason, Object... arguments)
- Specified by:
skipped
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
compacted
public void compacted()
- Specified by:
compacted
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
cleaned
public void cleaned(long reclaimedSize, long currentSize)
- Specified by:
cleaned
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
updateStatus
public void updateStatus(String status)
- Specified by:
updateStatus
in interfaceorg.apache.jackrabbit.oak.spi.gc.GCMonitor
-
-