Class S3AMultipartUploaderStatisticsImpl
java.lang.Object
org.apache.hadoop.fs.s3a.statistics.impl.AbstractS3AStatisticsSource
org.apache.hadoop.fs.s3a.statistics.impl.S3AMultipartUploaderStatisticsImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,S3AMultipartUploaderStatistics,S3AStatisticInterface,org.apache.hadoop.fs.statistics.DurationTrackerFactory,org.apache.hadoop.fs.statistics.IOStatisticsSource
public final class S3AMultipartUploaderStatisticsImpl
extends AbstractS3AStatisticsSource
implements S3AMultipartUploaderStatistics
Implementation of the uploader statistics.
This takes a function to update some counter and will update this value when things change, so it can be bonded to arbitrary statistic collectors.
Internally it builds a map of the relevant multipart statistics,
increments as appropriate and serves this data back through
the IOStatisticsSource API.
-
Constructor Summary
ConstructorsConstructorDescriptionS3AMultipartUploaderStatisticsImpl(BiConsumer<Statistic, Long> incrementCallback) Constructor. -
Method Summary
Methods inherited from class org.apache.hadoop.fs.s3a.statistics.impl.AbstractS3AStatisticsSource
getIOStatistics, incCounter, incCounter, incGauge, incGauge, lookupCounterValue, lookupGaugeValue, setIOStatistics, toString, trackDurationMethods 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, trackDurationMethods inherited from interface org.apache.hadoop.fs.statistics.IOStatisticsSource
getIOStatistics
-
Constructor Details
-
S3AMultipartUploaderStatisticsImpl
Constructor.- Parameters:
incrementCallback- The operation to increment a counter/statistic by a value.
-
-
Method Details
-
instantiated
public void instantiated()- Specified by:
instantiatedin interfaceS3AMultipartUploaderStatistics
-
uploadStarted
public void uploadStarted()- Specified by:
uploadStartedin interfaceS3AMultipartUploaderStatistics
-
partPut
public void partPut(long lengthInBytes) - Specified by:
partPutin interfaceS3AMultipartUploaderStatistics
-
uploadCompleted
public void uploadCompleted()- Specified by:
uploadCompletedin interfaceS3AMultipartUploaderStatistics
-
uploadAborted
public void uploadAborted()- Specified by:
uploadAbortedin interfaceS3AMultipartUploaderStatistics
-
abortUploadsUnderPathInvoked
public void abortUploadsUnderPathInvoked()- Specified by:
abortUploadsUnderPathInvokedin interfaceS3AMultipartUploaderStatistics
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-