Package org.apache.hadoop.hdfs
Class DFSOpsCountStatistics
java.lang.Object
org.apache.hadoop.fs.StorageStatistics
org.apache.hadoop.hdfs.DFSOpsCountStatistics
public class DFSOpsCountStatistics
extends org.apache.hadoop.fs.StorageStatistics
This storage statistics tracks how many times each DFS operation was issued.
For each tracked DFS operation, there is a respective entry in the enum
DFSOpsCountStatistics.OpType. To use, increment the value the DistributedFileSystem
and WebHdfsFileSystem.
This class is thread safe, and is generally shared by multiple threads.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis is for counting distributed file system operations.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
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.fs.StorageStatistics
getName
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DFSOpsCountStatistics
public DFSOpsCountStatistics()
-
-
Method Details
-
incrementOpCounter
-
getScheme
- Overrides:
getSchemein classorg.apache.hadoop.fs.StorageStatistics
-
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
-
reset
public void reset()- Specified by:
resetin classorg.apache.hadoop.fs.StorageStatistics
-