public class RedisCacheIOMonitor extends org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorAdapter
IOMonitor implementations registers the following monitoring endpoints
with the Metrics library if available:
OAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_BYTES:
a meter metrics for the number of bytes read from segment redis cacheOAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_BYTES:
a meter metrics for the number of bytes written to segment redis cacheOAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_TIME:
a timer metrics for the time spent reading from segment redis cacheOAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_TIME:
a timer metrics for the time spent writing to segment redis cache| Modifier and Type | Field and Description |
|---|---|
static String |
OAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_BYTES |
static String |
OAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_TIME |
static String |
OAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_BYTES |
static String |
OAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_TIME |
| Constructor and Description |
|---|
RedisCacheIOMonitor(@NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSegmentRead(File file,
long msb,
long lsb,
int length,
long elapsed) |
void |
afterSegmentWrite(File file,
long msb,
long lsb,
int length,
long elapsed) |
beforeSegmentRead, beforeSegmentWritepublic static final String OAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_BYTES
public static final String OAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_BYTES
public static final String OAK_SEGMENT_CACHE_REDIS_SEGMENT_READ_TIME
public static final String OAK_SEGMENT_CACHE_REDIS_SEGMENT_WRITE_TIME
public RedisCacheIOMonitor(@NotNull
@NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public void afterSegmentRead(File file, long msb, long lsb, int length, long elapsed)
afterSegmentRead in interface org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorafterSegmentRead in class org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorAdapterpublic void afterSegmentWrite(File file, long msb, long lsb, int length, long elapsed)
afterSegmentWrite in interface org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorafterSegmentWrite in class org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorAdapterCopyright © 2012–2021 The Apache Software Foundation. All rights reserved.