Class IOMonitorAdapter
java.lang.Object
org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitorAdapter
- All Implemented Interfaces:
IOMonitor
- Direct Known Subclasses:
DiskCacheIOMonitor,IOTraceMonitor,MetricsIOMonitor,RedisCacheIOMonitor
A void implementation of the
IOMonitor. Can be used for the
testing purposes or for the extension.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSegmentRead(File file, long msb, long lsb, int length, long elapsed) Called after a segment is read from the file system.voidafterSegmentWrite(File file, long msb, long lsb, int length, long elapsed) Called after a segment is written to the file system.voidbeforeSegmentRead(File file, long msb, long lsb, int length) Called before a segment is read from the file system.voidbeforeSegmentWrite(File file, long msb, long lsb, int length) Called before a segment is written to the file system.
-
Constructor Details
-
IOMonitorAdapter
public IOMonitorAdapter()
-
-
Method Details
-
beforeSegmentRead
Description copied from interface:IOMonitorCalled before a segment is read from the file system.- Specified by:
beforeSegmentReadin interfaceIOMonitor- Parameters:
file- File containing the segment.msb- Most significant bits of the segment ID.lsb- Least significant bits of the segment ID.length- Size of the segment.
-
afterSegmentRead
Description copied from interface:IOMonitorCalled after a segment is read from the file system. This is called only in case of successful operations.- Specified by:
afterSegmentReadin interfaceIOMonitor- Parameters:
file- File containing the segment.msb- Most significant bits of the segment ID.lsb- Least significant bits of the segment ID.length- Size of the segment.elapsed- Time spent by the read operation, in nanoseconds.
-
beforeSegmentWrite
Description copied from interface:IOMonitorCalled before a segment is written to the file system.- Specified by:
beforeSegmentWritein interfaceIOMonitor- Parameters:
file- File containing the segment.msb- Most significant bits of the segment ID.lsb- Least significant bits of the segment ID.length- Size of the segment.
-
afterSegmentWrite
Description copied from interface:IOMonitorCalled after a segment is written to the file system. This is called only in case of successful operations.- Specified by:
afterSegmentWritein interfaceIOMonitor- Parameters:
file- File containing the segment.msb- Most significant bits of the segment ID.lsb- Least significant bits of the segment ID.length- Size of the segment.elapsed- Time spent by the write operation, in nanoseconds.
-