org.apache.hadoop.fs.statistics.DurationTrackerFactory, org.apache.hadoop.fs.statistics.IOStatisticsSourceAbfsCountersImpl@Private
@Unstable
public interface AbfsCounters
extends org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.statistics.DurationTrackerFactory
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
formString(java.lang.String prefix,
java.lang.String separator,
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Long> |
toMap() |
Convert all the statistics into a key-value pair map to be used for
testing.
|
org.apache.hadoop.fs.statistics.DurationTracker |
trackDuration(java.lang.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.java.lang.String formString(java.lang.String prefix,
java.lang.String separator,
java.lang.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.@VisibleForTesting java.util.Map<java.lang.String,java.lang.Long> toMap()
org.apache.hadoop.fs.statistics.DurationTracker trackDuration(java.lang.String key)
trackDuration in interface org.apache.hadoop.fs.statistics.DurationTrackerFactorykey - Name of the DurationTracker statistic.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.