@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface AbfsCounters
extends org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.statistics.DurationTrackerFactory
| Modifier and Type | Method and Description |
|---|---|
String |
formString(String prefix,
String separator,
String suffix,
boolean all)
Form a String of the all the statistics and present in an organized manner.
|
void |
incrementCounter(AbfsStatistic statistic,
long value)
Increment a AbfsStatistic by a long value.
|
Map<String,Long> |
toMap()
Convert all the statistics into a key-value pair map to be used for
testing.
|
org.apache.hadoop.fs.statistics.DurationTracker |
trackDuration(String key)
Start a DurationTracker for a request.
|
void incrementCounter(AbfsStatistic statistic, long value)
statistic - AbfsStatistic to be incremented.value - the value to increment the statistic by.String formString(String prefix, String separator, String suffix, boolean all)
prefix - the prefix to be set.separator - the separator between the statistic name and value.suffix - the suffix to be used.all - enable all the statistics to be displayed or not.Map<String,Long> toMap()
org.apache.hadoop.fs.statistics.DurationTracker trackDuration(String key)
trackDuration in interface org.apache.hadoop.fs.statistics.DurationTrackerFactorykey - Name of the DurationTracker statistic.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.