public final class S3AMultipartUploaderStatisticsImpl extends AbstractS3AStatisticsSource implements S3AMultipartUploaderStatistics
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 and Description |
---|
S3AMultipartUploaderStatisticsImpl(BiConsumer<Statistic,Long> incrementCallback)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
abortUploadsUnderPathInvoked() |
void |
close() |
void |
instantiated() |
void |
partPut(long lengthInBytes) |
void |
uploadAborted() |
void |
uploadCompleted() |
void |
uploadStarted() |
getIOStatistics, incCounter, incCounter, incGauge, incGauge, lookupCounterValue, lookupGaugeValue, setIOStatistics, toString, trackDuration
public S3AMultipartUploaderStatisticsImpl(BiConsumer<Statistic,Long> incrementCallback)
incrementCallback
- The operation to increment a
counter/statistic by a value.public void instantiated()
instantiated
in interface S3AMultipartUploaderStatistics
public void uploadStarted()
uploadStarted
in interface S3AMultipartUploaderStatistics
public void partPut(long lengthInBytes)
partPut
in interface S3AMultipartUploaderStatistics
public void uploadCompleted()
uploadCompleted
in interface S3AMultipartUploaderStatistics
public void uploadAborted()
uploadAborted
in interface S3AMultipartUploaderStatistics
public void abortUploadsUnderPathInvoked()
abortUploadsUnderPathInvoked
in interface S3AMultipartUploaderStatistics
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.