public class LoggingGCMonitor extends Object implements org.apache.jackrabbit.oak.spi.gc.GCMonitor
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.Constructor and Description |
---|
LoggingGCMonitor(org.slf4j.Logger log)
New instance logging to
log |
Modifier and Type | Method and Description |
---|---|
void |
cleaned(long reclaimedSize,
long currentSize) |
void |
compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights) |
void |
error(String message,
Exception exception) |
void |
info(String message,
Object... arguments) |
void |
skipped(String reason,
Object... arguments) |
void |
warn(String message,
Object... arguments) |
public LoggingGCMonitor(org.slf4j.Logger log)
log
log
- public void info(String message, Object... arguments)
info
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
public void warn(String message, Object... arguments)
warn
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
public void error(String message, Exception exception)
error
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
public void skipped(String reason, Object... arguments)
skipped
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
public void compacted(long[] segmentCounts, long[] recordCounts, long[] compactionMapWeights)
compacted
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
public void cleaned(long reclaimedSize, long currentSize)
cleaned
in interface org.apache.jackrabbit.oak.spi.gc.GCMonitor
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.