Package com.google.cloud.hadoop.fs.gcs
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.
-
-
Constructor Summary
Constructors Constructor Description GhfsStorageStatistics(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics)
Create the Storage Statistics instance from the IOStatistics
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getMax(String symbol)
To get the maximum value which is stored with MAXIMUM extensiondouble
getMean(String symbol)
To get the mean value which is stored with MEAN extensionLong
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
NAME
public static final String NAME
"GhfsStorageStatistics" The key that stores all the registered metrics- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-