Class WrappedIOStatistics

java.lang.Object
org.apache.hadoop.fs.statistics.impl.AbstractIOStatisticsImpl
org.apache.hadoop.fs.statistics.impl.WrappedIOStatistics
All Implemented Interfaces:
IOStatistics

public class WrappedIOStatistics extends AbstractIOStatisticsImpl
Wrap IOStatistics source with another (dynamic) wrapper.
  • Constructor Details

    • WrappedIOStatistics

      public WrappedIOStatistics(IOStatistics wrapped)
      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

      public Map<String,Long> counters()
      Description copied from interface: IOStatistics
      Map of counters.
      Returns:
      the current map of counters.
    • getWrapped

      protected IOStatistics getWrapped()
      Get at the wrapped inner statistics.
      Returns:
      the wrapped value
    • setWrapped

      protected void setWrapped(IOStatistics wrapped)
      Set the wrapped statistics. Will fail if the field is already set.
      Parameters:
      wrapped - new value
    • gauges

      public Map<String,Long> gauges()
      Description copied from interface: IOStatistics
      Map of gauges.
      Returns:
      the current map of gauges.
    • minimums

      public Map<String,Long> minimums()
      Description copied from interface: IOStatistics
      Map of minimums.
      Returns:
      the current map of minimums.
    • maximums

      public Map<String,Long> maximums()
      Description copied from interface: IOStatistics
      Map of maximums.
      Returns:
      the current map of maximums.
    • meanStatistics

      public Map<String,MeanStatistic> meanStatistics()
      Description copied from interface: IOStatistics
      Map of meanStatistics.
      Returns:
      the current map of MeanStatistic statistics.
    • toString

      public String toString()
      Return the statistics dump of the wrapped statistics.
      Overrides:
      toString in class Object
      Returns:
      the statistics for logging.