public class DFSOpsCountStatistics
extends org.apache.hadoop.fs.StorageStatistics
DFSOpsCountStatistics.OpType. To use, increment the value the DistributedFileSystem
and WebHdfsFileSystem.
This class is thread safe, and is generally shared by multiple threads.| Modifier and Type | Class and Description |
|---|---|
static class |
DFSOpsCountStatistics.OpType
This is for counting distributed file system operations.
|
| Constructor and Description |
|---|
DFSOpsCountStatistics() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLong(String key) |
Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> |
getLongStatistics() |
String |
getScheme() |
void |
incrementOpCounter(DFSOpsCountStatistics.OpType op) |
boolean |
isTracked(String key) |
void |
reset() |
public static final String NAME
public void incrementOpCounter(DFSOpsCountStatistics.OpType op)
public String getScheme()
getScheme in class org.apache.hadoop.fs.StorageStatisticspublic Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> getLongStatistics()
getLongStatistics in class org.apache.hadoop.fs.StorageStatisticspublic Long getLong(String key)
getLong in class org.apache.hadoop.fs.StorageStatisticspublic boolean isTracked(String key)
isTracked in class org.apache.hadoop.fs.StorageStatisticspublic void reset()
reset in class org.apache.hadoop.fs.StorageStatisticsCopyright © 2008–2023 Apache Software Foundation. All rights reserved.