Class GhfsGlobalStorageStatistics


  • @Private
    @Unstable
    public class GhfsGlobalStorageStatistics
    extends org.apache.hadoop.fs.StorageStatistics
    Storage statistics for GCS
    • Field Detail

      • NAME

        public static final String NAME
        "GhfsStorageStatistics" The key that stores all the registered metrics
        See Also:
        Constant Field Values
      • LATENCY_LOGGING_THRESHOLD_MS

        public static final int LATENCY_LOGGING_THRESHOLD_MS
        See Also:
        Constant Field Values
    • Constructor Detail

      • GhfsGlobalStorageStatistics

        public GhfsGlobalStorageStatistics()
    • Method Detail

      • reset

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

        protected void addTotalTimeStatistic​(String statistic)
      • fileDeleted

        public void fileDeleted​(int count)
      • directoryCreated

        public void directoryCreated()
      • 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
      • 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 key)
        To get the mean value which is stored with MEAN extension
        Parameters:
        key -
        Returns:
        mean statistic value