Interface IOStatisticsSetters

All Superinterfaces:
IOStatistics
All Known Implementing Classes:
IOStatisticsSnapshot

@Public @Evolving public interface IOStatisticsSetters extends IOStatistics
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
  • Method Details

    • setCounter

      void setCounter(String key, long value)
      Set a counter. No-op if the counter is unknown.
      Parameters:
      key - statistics key
      value - value to set
    • setGauge

      void setGauge(String key, long value)
      Set a gauge.
      Parameters:
      key - statistics key
      value - value to set
    • setMaximum

      void setMaximum(String key, long value)
      Set a maximum.
      Parameters:
      key - statistics key
      value - value to set
    • setMinimum

      void setMinimum(String key, long value)
      Set a minimum.
      Parameters:
      key - statistics key
      value - value to set
    • setMeanStatistic

      void setMeanStatistic(String key, MeanStatistic value)
      Set a mean statistic to a given value.
      Parameters:
      key - statistic key
      value - new value.