public abstract class AbstractS3AStatisticsSource extends Object implements org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.statistics.DurationTrackerFactory
A lot of the methods are very terse, because S3AInstrumentation has verbose methods of similar names; the short ones always refer to the inner class and not any superclass method.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractS3AStatisticsSource() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.statistics.impl.IOStatisticsStore |
getIOStatistics() |
long |
incCounter(String name)
Increment a named counter by 1.
|
long |
incCounter(String name,
long value)
DefaultS3ClientFactoryDefaultS3ClientFactory
Increment a named counter by 1.
|
long |
incGauge(String name) |
long |
incGauge(String name,
long v) |
Long |
lookupCounterValue(String name) |
Long |
lookupGaugeValue(String name) |
protected void |
setIOStatistics(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore statistics)
Setter.
|
String |
toString() |
org.apache.hadoop.fs.statistics.DurationTracker |
trackDuration(String key,
long count) |
public org.apache.hadoop.fs.statistics.impl.IOStatisticsStore getIOStatistics()
getIOStatistics in interface org.apache.hadoop.fs.statistics.IOStatisticsSourceprotected void setIOStatistics(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore statistics)
statistics - statistics to setpublic long incCounter(String name)
name - counter namepublic long incCounter(String name, long value)
name - counter namevalue - value to increment bypublic long incGauge(String name, long v)
public long incGauge(String name)
public org.apache.hadoop.fs.statistics.DurationTracker trackDuration(String key, long count)
trackDuration in interface org.apache.hadoop.fs.statistics.DurationTrackerFactoryCopyright © 2008–2024 Apache Software Foundation. All rights reserved.