@InterfaceAudience.Public @InterfaceStability.Unstable public final class IOStatisticsSupport extends Object
Modifier and Type | Method and Description |
---|---|
static IOStatistics |
retrieveIOStatistics(Object source)
Get the IOStatistics of the source, casting it
if it is of the relevant type, otherwise,
if it implements
IOStatisticsSource
extracting the value. |
static IOStatisticsSnapshot |
snapshotIOStatistics()
Create a snapshot statistics instance ready to aggregate data.
|
static IOStatisticsSnapshot |
snapshotIOStatistics(IOStatistics statistics)
Take a snapshot of the current statistics state.
|
static org.apache.hadoop.fs.statistics.DurationTracker |
stubDurationTracker()
Get a stub duration tracker.
|
static org.apache.hadoop.fs.statistics.DurationTrackerFactory |
stubDurationTrackerFactory()
Return a stub duration tracker factory whose returned trackers
are always no-ops.
|
public static IOStatisticsSnapshot snapshotIOStatistics(IOStatistics statistics)
This is not an atomic option.
The instance can be serialized, and its
toString()
method lists all the values.
statistics
- statisticspublic static IOStatisticsSnapshot snapshotIOStatistics()
toString()
method lists all the values.public static IOStatistics retrieveIOStatistics(Object source)
IOStatisticsSource
extracting the value.
Returns null if the source isn't of the write type
or the return value of
IOStatisticsSource.getIOStatistics()
was null.public static org.apache.hadoop.fs.statistics.DurationTrackerFactory stubDurationTrackerFactory()
public static org.apache.hadoop.fs.statistics.DurationTracker stubDurationTracker()
Copyright © 2021 Apache Software Foundation. All rights reserved.