Package org.apache.hadoop.fs.statistics
Interface IOStatisticsSetters
- All Superinterfaces:
IOStatistics
- All Known Implementing Classes:
IOStatisticsSnapshot
Setter for IOStatistics entries.
These operations have been in the read/write API
IOStatisticsStore since IOStatistics
was added; extracting into its own interface allows for
IOStatisticsSnapshot to also support it.
These are the simple setters, they don't provide for increments,
decrements, calculation of min/max/mean etc.- Since:
- The interface and IOStatisticsSnapshot support was added after Hadoop 3.3.5
-
Field Summary
Fields inherited from interface org.apache.hadoop.fs.statistics.IOStatistics
MAX_UNSET_VALUE, MIN_UNSET_VALUE -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCounter(String key, long value) Set a counter.voidSet a gauge.voidsetMaximum(String key, long value) Set a maximum.voidsetMeanStatistic(String key, MeanStatistic value) Set a mean statistic to a given value.voidsetMinimum(String key, long value) Set a minimum.Methods inherited from interface org.apache.hadoop.fs.statistics.IOStatistics
counters, gauges, maximums, meanStatistics, minimums
-
Method Details
-
setCounter
Set a counter. No-op if the counter is unknown.- Parameters:
key- statistics keyvalue- value to set
-
setGauge
Set a gauge.- Parameters:
key- statistics keyvalue- value to set
-
setMaximum
Set a maximum.- Parameters:
key- statistics keyvalue- value to set
-
setMinimum
Set a minimum.- Parameters:
key- statistics keyvalue- value to set
-
setMeanStatistic
Set a mean statistic to a given value.- Parameters:
key- statistic keyvalue- new value.
-