Class AbstractS3AStatisticsSource
java.lang.Object
org.apache.hadoop.fs.s3a.statistics.impl.AbstractS3AStatisticsSource
- All Implemented Interfaces:
org.apache.hadoop.fs.statistics.DurationTrackerFactory,org.apache.hadoop.fs.statistics.IOStatisticsSource
- Direct Known Subclasses:
S3AMultipartUploaderStatisticsImpl
public abstract class AbstractS3AStatisticsSource
extends Object
implements org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.statistics.DurationTrackerFactory
Base class for implementing IOStatistics sources in the S3 module.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.statistics.impl.IOStatisticsStorelongincCounter(String name) Increment a named counter by 1.longincCounter(String name, long value) DefaultS3ClientFactoryDefaultS3ClientFactory Increment a named counter by 1.longlonglookupCounterValue(String name) lookupGaugeValue(String name) protected voidsetIOStatistics(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore statistics) Setter.toString()org.apache.hadoop.fs.statistics.DurationTrackertrackDuration(String key, long count) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.statistics.DurationTrackerFactory
trackDuration
-
Constructor Details
-
AbstractS3AStatisticsSource
protected AbstractS3AStatisticsSource()
-
-
Method Details
-
getIOStatistics
public org.apache.hadoop.fs.statistics.impl.IOStatisticsStore getIOStatistics()- Specified by:
getIOStatisticsin interfaceorg.apache.hadoop.fs.statistics.IOStatisticsSource
-
setIOStatistics
protected void setIOStatistics(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore statistics) Setter. this must be called in the subclass constructor with whatever- Parameters:
statistics- statistics to set
-
incCounter
Increment a named counter by 1.- Parameters:
name- counter name- Returns:
- the updated value or, if the counter is unknown: 0
-
incCounter
DefaultS3ClientFactoryDefaultS3ClientFactory Increment a named counter by 1.- Parameters:
name- counter namevalue- value to increment by- Returns:
- the updated value or, if the counter is unknown: 0
-
lookupCounterValue
-
lookupGaugeValue
-
incGauge
-
incGauge
-
toString
-
trackDuration
- Specified by:
trackDurationin interfaceorg.apache.hadoop.fs.statistics.DurationTrackerFactory
-