public interface IOChannelStatsCollector
IOChannelStatsCollector
is normally obtained by calling IOMonitoringContext.newCollector(String, IOChannelOperation)
.
However, it is also possible to create one outside of a monitoring context.
The creator is responsible for ensuring I/O operations are instrumented.
To avoid this requirement, consider using the various methods in
IOMonitoringContext
which wrap existing streams with instrumented
versions instead of directly creating collectors.
Modifier and Type | Method and Description |
---|---|
void |
close()
Should be called upon close to avoid accumulation of statistics collectors
|
void |
finishedIO(long bytesTransferred)
Marks the completion of an I/O operation.
|
void |
startedIO()
Marks the start of an I/O operation.
|
void startedIO()
finishedIO(long)
is expected to mark the end.void finishedIO(long bytesTransferred)
bytesTransferred
- the number of bytes transferred by the operationvoid close()
Copyright © 2021 Actian Corporation. All rights reserved.