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, trackDurationpublic S3AMultipartUploaderStatisticsImpl(BiConsumer<Statistic,Long> incrementCallback)
incrementCallback - The operation to increment a
counter/statistic by a value.public void instantiated()
instantiated in interface S3AMultipartUploaderStatisticspublic void uploadStarted()
uploadStarted in interface S3AMultipartUploaderStatisticspublic void partPut(long lengthInBytes)
partPut in interface S3AMultipartUploaderStatisticspublic void uploadCompleted()
uploadCompleted in interface S3AMultipartUploaderStatisticspublic void uploadAborted()
uploadAborted in interface S3AMultipartUploaderStatisticspublic void abortUploadsUnderPathInvoked()
abortUploadsUnderPathInvoked in interface S3AMultipartUploaderStatisticspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.