Package org.apache.hadoop.fs
Class FileSystemStorageStatistics
java.lang.Object
org.apache.hadoop.fs.StorageStatistics
org.apache.hadoop.fs.FileSystemStorageStatistics
A basic StorageStatistics instance which simply returns data from
FileSystem#Statistics.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.StorageStatistics
StorageStatistics.CommonStatisticNames, StorageStatistics.LongStatistic -
Method Summary
Modifier and TypeMethodDescriptionGet the value of a statistic.Get an iterator over all the currently tracked long statistics.booleanReturn true if a statistic is being tracked.voidreset()Reset all the statistic data.Methods inherited from class org.apache.hadoop.fs.StorageStatistics
getName
-
Method Details
-
getScheme
- Overrides:
getSchemein classStorageStatistics- Returns:
- the associated file system scheme if this is scheme specific, else return null.
-
getLongStatistics
Description copied from class:StorageStatisticsGet an iterator over all the currently tracked long statistics. The values returned will depend on the type of FileSystem or FileContext object. The values do not necessarily reflect a snapshot in time.- Specified by:
getLongStatisticsin classStorageStatistics- Returns:
- LongStatistic Iterator.
-
getLong
Description copied from class:StorageStatisticsGet the value of a statistic.- Specified by:
getLongin classStorageStatistics- Parameters:
key- key.- Returns:
- null if the statistic is not being tracked or is not a long statistic. The value of the statistic, otherwise.
-
isTracked
Return true if a statistic is being tracked.- Specified by:
isTrackedin classStorageStatistics- Parameters:
key- key.- Returns:
- True only if the statistic is being tracked.
-
reset
public void reset()Description copied from class:StorageStatisticsReset all the statistic data.- Specified by:
resetin classStorageStatistics
-