Package com.google.cloud.hadoop.fs.gcs
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
-
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final String"GhfsStorageStatistics" The key that stores all the registered metrics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTotalTimeStatistic(String statistic) Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic>To 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 extensioncom.google.cloud.hadoop.fs.gcs.GhfsThreadLocalStatisticsbooleanvoidreset()toString()voidupdateStats(GoogleCloudStorageStatistics statistic, long duration, Object context) Methods inherited from class org.apache.hadoop.fs.StorageStatistics
getName, getScheme
-
Field Details
-
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:
resetin classorg.apache.hadoop.fs.StorageStatistics
-
updateStats
-
addTotalTimeStatistic
-
getLongStatistics
- Specified by:
getLongStatisticsin classorg.apache.hadoop.fs.StorageStatistics
-
getLong
- Specified by:
getLongin classorg.apache.hadoop.fs.StorageStatistics
-
isTracked
- Specified by:
isTrackedin classorg.apache.hadoop.fs.StorageStatistics
-
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:
key-- Returns:
- mean statistic value
-
toString
-