public interface IOMonitor
Modifier and Type | Method and Description |
---|---|
void |
afterSegmentRead(java.io.File file,
long msb,
long lsb,
int length,
long elapsed)
Called after a segment is read from the file system.
|
void |
afterSegmentWrite(java.io.File file,
long msb,
long lsb,
int length,
long elapsed)
Called after a segment is written to the file system.
|
void |
beforeSegmentRead(java.io.File file,
long msb,
long lsb,
int length)
Called before a segment is read from the file system.
|
void |
beforeSegmentWrite(java.io.File file,
long msb,
long lsb,
int length)
Called before a segment is written to the file system.
|
void beforeSegmentRead(java.io.File file, long msb, long lsb, int length)
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.void afterSegmentRead(java.io.File file, long msb, long lsb, int length, long elapsed)
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.void beforeSegmentWrite(java.io.File file, long msb, long lsb, int length)
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.void afterSegmentWrite(java.io.File file, long msb, long lsb, int length, long elapsed)
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.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.