Class GhfsGlobalStorageStatistics

java.lang.Object
org.apache.hadoop.fs.StorageStatistics
com.google.cloud.hadoop.fs.gcs.GhfsGlobalStorageStatistics

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

    • NAME

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

      public static final int LATENCY_LOGGING_THRESHOLD_MS
      See Also:
  • Constructor Details

    • GhfsGlobalStorageStatistics

      public GhfsGlobalStorageStatistics()
  • Method Details

    • getThreadLocalStatistics

      public com.google.cloud.hadoop.fs.gcs.GhfsThreadLocalStatistics getThreadLocalStatistics()
    • reset

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

      public void updateStats(GoogleCloudStorageStatistics statistic, long duration, Object context)
    • addTotalTimeStatistic

      protected void addTotalTimeStatistic(String statistic)
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object