Class DFSOpsCountStatistics

java.lang.Object
org.apache.hadoop.fs.StorageStatistics
org.apache.hadoop.hdfs.DFSOpsCountStatistics

public class DFSOpsCountStatistics extends org.apache.hadoop.fs.StorageStatistics
This storage statistics tracks how many times each DFS operation was issued. For each tracked DFS operation, there is a respective entry in the enum DFSOpsCountStatistics.OpType. To use, increment the value the DistributedFileSystem and WebHdfsFileSystem. This class is thread safe, and is generally shared by multiple threads.
  • Field Details

  • Constructor Details

    • DFSOpsCountStatistics

      public DFSOpsCountStatistics()
  • Method Details

    • incrementOpCounter

      public void incrementOpCounter(DFSOpsCountStatistics.OpType op)
    • getScheme

      public String getScheme()
      Overrides:
      getScheme in class org.apache.hadoop.fs.StorageStatistics
    • getLongStatistics

      public Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> getLongStatistics()
      Specified by:
      getLongStatistics in class org.apache.hadoop.fs.StorageStatistics
    • getLong

      public Long getLong(String key)
      Specified by:
      getLong in class org.apache.hadoop.fs.StorageStatistics
    • isTracked

      public boolean isTracked(String key)
      Specified by:
      isTracked in class org.apache.hadoop.fs.StorageStatistics
    • reset

      public void reset()
      Specified by:
      reset in class org.apache.hadoop.fs.StorageStatistics