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 | Description |
|---|---|---|
static class |
DFSOpsCountStatistics.OpType |
This is for counting distributed file system operations.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
| Constructor | Description |
|---|---|
DFSOpsCountStatistics() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Long |
getLong(java.lang.String key) |
|
java.util.Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> |
getLongStatistics() |
|
java.lang.String |
getScheme() |
|
void |
incrementOpCounter(DFSOpsCountStatistics.OpType op) |
|
boolean |
isTracked(java.lang.String key) |
|
void |
reset() |
public static final java.lang.String NAME
public void incrementOpCounter(DFSOpsCountStatistics.OpType op)
public java.lang.String getScheme()
getScheme in class org.apache.hadoop.fs.StorageStatisticspublic java.util.Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> getLongStatistics()
getLongStatistics in class org.apache.hadoop.fs.StorageStatisticspublic java.lang.Long getLong(java.lang.String key)
getLong in class org.apache.hadoop.fs.StorageStatisticspublic boolean isTracked(java.lang.String key)
isTracked in class org.apache.hadoop.fs.StorageStatisticspublic void reset()
reset in class org.apache.hadoop.fs.StorageStatisticsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.