java.lang.AutoCloseable, DurationTrackerpublic class StatisticDurationTracker extends OperationDuration implements DurationTracker
| Constructor | Description |
|---|---|
StatisticDurationTracker(IOStatisticsStore iostats,
java.lang.String key) |
Constructor -increments the counter by 1.
|
StatisticDurationTracker(IOStatisticsStore iostats,
java.lang.String key,
long count) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Set the finished time and then update the statistics.
|
void |
failed() |
The operation failed.
|
java.lang.String |
toString() |
Return the duration as
OperationDuration.humanTime(long). |
asDuration, finished, getDurationString, humanTime, time, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDurationpublic StatisticDurationTracker(IOStatisticsStore iostats, java.lang.String key)
iostats - statistics to updatekey - prefix of values.public StatisticDurationTracker(IOStatisticsStore iostats, java.lang.String key, long count)
iostats - statistics to updatekey - Key to use as prefix of values.count - #of times to increment the matching counter.public void failed()
DurationTrackerfailed in interface DurationTrackerpublic void close()
close in interface java.lang.AutoCloseableclose in interface DurationTrackerpublic java.lang.String toString()
OperationDurationOperationDuration.humanTime(long).toString in class OperationDurationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.