Class WrappedIOStatistics
java.lang.Object
org.apache.hadoop.fs.statistics.impl.AbstractIOStatisticsImpl
org.apache.hadoop.fs.statistics.impl.WrappedIOStatistics
- All Implemented Interfaces:
IOStatistics
Wrap IOStatistics source with another (dynamic) wrapper.
-
Field Summary
Fields inherited from interface org.apache.hadoop.fs.statistics.IOStatistics
MAX_UNSET_VALUE, MIN_UNSET_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiate without setting the statistics.WrappedIOStatistics(IOStatistics wrapped) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptioncounters()Map of counters.gauges()Map of gauges.protected IOStatisticsGet at the wrapped inner statistics.maximums()Map of maximums.Map of meanStatistics.minimums()Map of minimums.protected voidsetWrapped(IOStatistics wrapped) Set the wrapped statistics.toString()Return the statistics dump of the wrapped statistics.
-
Constructor Details
-
WrappedIOStatistics
Instantiate.- Parameters:
wrapped- nullable wrapped statistics.
-
WrappedIOStatistics
protected WrappedIOStatistics()Instantiate without setting the statistics. This is for subclasses which build up the map during their own construction.
-
-
Method Details
-
counters
Description copied from interface:IOStatisticsMap of counters.- Returns:
- the current map of counters.
-
getWrapped
Get at the wrapped inner statistics.- Returns:
- the wrapped value
-
setWrapped
Set the wrapped statistics. Will fail if the field is already set.- Parameters:
wrapped- new value
-
gauges
Description copied from interface:IOStatisticsMap of gauges.- Returns:
- the current map of gauges.
-
minimums
Description copied from interface:IOStatisticsMap of minimums.- Returns:
- the current map of minimums.
-
maximums
Description copied from interface:IOStatisticsMap of maximums.- Returns:
- the current map of maximums.
-
meanStatistics
Description copied from interface:IOStatisticsMap of meanStatistics.- Returns:
- the current map of MeanStatistic statistics.
-
toString
Return the statistics dump of the wrapped statistics.
-