@InterfaceAudience.Private
@InterfaceStability.Unstable
public class GhfsStorageStatistics
extends org.apache.hadoop.fs.StorageStatistics
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
"GhfsStorageStatistics" The key that stores all the registered metrics
|
| Constructor and Description |
|---|
GhfsStorageStatistics() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLong(String key) |
Iterator<org.apache.hadoop.fs.StorageStatistics.LongStatistic> |
getLongStatistics() |
Long |
getMax(String symbol)
To get the maximum value which is stored with MAXIMUM extension
|
double |
getMean(String symbol)
To get the mean value which is stored with MEAN extension
|
Long |
getMin(String symbol)
To get the minimum value which is stored with MINIMUM extension
|
long |
incrementCounter(GhfsStatistic op,
long count)
Increment a specific counter.
|
boolean |
isTracked(String key) |
void |
reset() |
public static final String NAME
public long incrementCounter(GhfsStatistic op, long count)
op - operationcount - increment valuepublic void reset()
reset 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 Long getMin(String symbol)
symbol - public Long getMax(String symbol)
symbol - public double getMean(String symbol)
symbol - Copyright © 2023. All rights reserved.