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.StorageStatistics
public Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> getLongStatistics()
getLongStatistics
in class org.apache.hadoop.fs.StorageStatistics
public Long getLong(String key)
getLong
in class org.apache.hadoop.fs.StorageStatistics
public boolean isTracked(String key)
isTracked
in class org.apache.hadoop.fs.StorageStatistics
public void reset()
reset
in class org.apache.hadoop.fs.StorageStatistics
Copyright © 2018 Apache Software Foundation. All Rights Reserved.