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.StorageStatisticsStorage statistics for GCS
-
-
Field Summary
Fields Modifier and Type Field Description static intLATENCY_LOGGING_THRESHOLD_MSstatic StringNAME"GhfsStorageStatistics" The key that stores all the registered metrics
-
Constructor Summary
Constructors Constructor Description GhfsGlobalStorageStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTotalTimeStatistic(String statistic)voiddirectoryCreated()voidfileDeleted(int count)LonggetLong(String key)Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic>getLongStatistics()LonggetMax(String symbol)To get the maximum value which is stored with MAXIMUM extensiondoublegetMean(String key)To get the mean value which is stored with MEAN extensionLonggetMin(String symbol)To get the minimum value which is stored with MINIMUM extensionbooleanisTracked(String key)voidreset()StringtoString()
-
-
-
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
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin classorg.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:
getLongStatisticsin classorg.apache.hadoop.fs.StorageStatistics
-
getLong
public Long getLong(String key)
- Specified by:
getLongin classorg.apache.hadoop.fs.StorageStatistics
-
isTracked
public boolean isTracked(String key)
- Specified by:
isTrackedin classorg.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
-
-