Constructor and Description |
---|
CompositeIOMonitor()
Create a new empty
CompositeIOMonitor instance. |
CompositeIOMonitor(@NotNull Iterable<? extends IOMonitor> ioMonitors)
Create a new
CompositeIOMonitor instance delegating the passed ioMonitors |
Modifier and Type | Method and Description |
---|---|
void |
afterSegmentRead(File file,
long msb,
long lsb,
int length,
long elapsed)
Called after a segment is read from the file system.
|
void |
afterSegmentWrite(File file,
long msb,
long lsb,
int length,
long elapsed)
Called after a segment is written to the file system.
|
void |
beforeSegmentRead(File file,
long msb,
long lsb,
int length)
Called before a segment is read from the file system.
|
void |
beforeSegmentWrite(File file,
long msb,
long lsb,
int length)
Called before a segment is written to the file system.
|
@NotNull org.apache.jackrabbit.oak.spi.whiteboard.Registration |
registerIOMonitor(@NotNull IOMonitor ioMonitor)
Register a
IOMonitor instance to which this CompositeIOMonitor
will delegate all its calls until Registration.unregister() is called
on the return Registration . |
public CompositeIOMonitor(@NotNull @NotNull Iterable<? extends IOMonitor> ioMonitors)
CompositeIOMonitor
instance delegating the passed ioMonitors
ioMonitors
- IOMonitor
instances to delegate topublic CompositeIOMonitor()
CompositeIOMonitor
instance.@NotNull public @NotNull org.apache.jackrabbit.oak.spi.whiteboard.Registration registerIOMonitor(@NotNull @NotNull IOMonitor ioMonitor)
IOMonitor
instance to which this CompositeIOMonitor
will delegate all its calls until Registration.unregister()
is called
on the return Registration
.ioMonitor
- IOMonitor
to delegate toRegistration
for ioMonitor
.public void beforeSegmentRead(File file, long msb, long lsb, int length)
IOMonitor
beforeSegmentRead
in interface IOMonitor
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.public void afterSegmentRead(File file, long msb, long lsb, int length, long elapsed)
IOMonitor
afterSegmentRead
in interface IOMonitor
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.public void beforeSegmentWrite(File file, long msb, long lsb, int length)
IOMonitor
beforeSegmentWrite
in interface IOMonitor
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.public void afterSegmentWrite(File file, long msb, long lsb, int length, long elapsed)
IOMonitor
afterSegmentWrite
in interface IOMonitor
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–2020 The Apache Software Foundation. All rights reserved.