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.
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionGhfsStorageStatistics(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics) Create the Storage Statistics instance from the IOStatistics -
Method Summary
Modifier and TypeMethodDescriptionTo get the maximum value which is stored with MAXIMUM extensiondoubleTo get the mean value which is stored with MEAN extensionTo get the minimum value which is stored with MINIMUM extensionMethods inherited from class org.apache.hadoop.fs.statistics.impl.StorageStatisticsFromIOStatistics
getLong, getLongStatistics, getScheme, isTracked, iterator, resetMethods inherited from class org.apache.hadoop.fs.StorageStatistics
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
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
To get the minimum value which is stored with MINIMUM extension- Parameters:
symbol-- Returns:
- minimum statistic value
-
getMax
To get the maximum value which is stored with MAXIMUM extension- Parameters:
symbol-- Returns:
- maximum statistic value
-
getMean
To get the mean value which is stored with MEAN extension- Parameters:
symbol-- Returns:
- mean statistic value
-