Class GhfsStorageStatistics

java.lang.Object
org.apache.hadoop.fs.StorageStatistics
org.apache.hadoop.fs.statistics.impl.StorageStatisticsFromIOStatistics
com.google.cloud.hadoop.fs.gcs.GhfsStorageStatistics
All Implemented Interfaces:
Iterable<org.apache.hadoop.fs.StorageStatistics.LongStatistic>

public class GhfsStorageStatistics extends org.apache.hadoop.fs.statistics.impl.StorageStatisticsFromIOStatistics
Storage statistics for GCS, dynamically generated from the IOStatistics.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.fs.StorageStatistics

    org.apache.hadoop.fs.StorageStatistics.CommonStatisticNames, org.apache.hadoop.fs.StorageStatistics.LongStatistic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    "GhfsFileSystemBasedStorageStatistics" The key that stores all the registered metrics
  • Constructor Summary

    Constructors
    Constructor
    Description
    GhfsStorageStatistics(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics)
    Create the Storage Statistics instance from the IOStatistics
  • Method Summary

    Modifier and Type
    Method
    Description
    getMax(String symbol)
    To get the maximum value which is stored with MAXIMUM extension
    double
    getMean(String symbol)
    To get the mean value which is stored with MEAN extension
    getMin(String symbol)
    To get the minimum value which is stored with MINIMUM extension

    Methods inherited from class org.apache.hadoop.fs.statistics.impl.StorageStatisticsFromIOStatistics

    getLong, getLongStatistics, getScheme, isTracked, iterator, reset

    Methods inherited from class org.apache.hadoop.fs.StorageStatistics

    getName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • NAME

      public static final String NAME
      "GhfsFileSystemBasedStorageStatistics" The key that stores all the registered metrics
      See Also:
  • Constructor Details

    • GhfsStorageStatistics

      public GhfsStorageStatistics(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics)
      Create the Storage Statistics instance from the IOStatistics
  • Method Details

    • getMin

      public Long getMin(String symbol)
      To get the minimum value which is stored with MINIMUM extension
      Parameters:
      symbol -
      Returns:
      minimum statistic value
    • getMax

      public Long getMax(String symbol)
      To get the maximum value which is stored with MAXIMUM extension
      Parameters:
      symbol -
      Returns:
      maximum statistic value
    • getMean

      public double getMean(String symbol)
      To get the mean value which is stored with MEAN extension
      Parameters:
      symbol -
      Returns:
      mean statistic value