public final class EmptyS3AStatisticsContext extends Object implements S3AStatisticsContext
This class is here primarily to aid in testing, but it also allows for classes to require a non-empty statistics context in their constructor -yet still be instantiated without one bound to any filesystem.
| Modifier and Type | Class and Description |
|---|---|
static class |
EmptyS3AStatisticsContext.EmptyMultipartUploaderStatistics
Multipart Uploader.
|
| Modifier and Type | Field and Description |
|---|---|
static BlockOutputStreamStatistics |
EMPTY_BLOCK_OUTPUT_STREAM_STATISTICS |
static CommitterStatistics |
EMPTY_COMMITTER_STATISTICS |
static DelegationTokenStatistics |
EMPTY_DELEGATION_TOKEN_STATISTICS |
static S3AInputStreamStatistics |
EMPTY_INPUT_STREAM_STATISTICS |
static StatisticsFromAwsSdk |
EMPTY_STATISTICS_FROM_AWS_SDK |
| Constructor and Description |
|---|
EmptyS3AStatisticsContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueToQuantiles(Statistic op,
long value)
Add a value to a quantiles statistic.
|
S3AMultipartUploaderStatistics |
createMultipartUploaderStatistics()
Creaet a multipart statistics collector.
|
void |
decrementGauge(Statistic op,
long count)
Decrement a specific gauge.
|
void |
incrementCounter(Statistic op,
long count)
Increment a specific counter.
|
void |
incrementGauge(Statistic op,
long count)
Increment a specific gauge.
|
CommitterStatistics |
newCommitterStatistics()
Create a new instance of the committer statistics.
|
DelegationTokenStatistics |
newDelegationTokenStatistics()
Create a delegation token statistics instance.
|
S3AInputStreamStatistics |
newInputStreamStatistics()
Create a stream input statistics instance.
|
BlockOutputStreamStatistics |
newOutputStreamStatistics()
Create a stream output statistics instance.
|
StatisticsFromAwsSdk |
newStatisticsFromAwsSdk()
Create a StatisticsFromAwsSdk instance.
|
void |
recordDuration(Statistic op,
boolean success,
Duration duration)
Record a duration.
|
public static final S3AInputStreamStatistics EMPTY_INPUT_STREAM_STATISTICS
public static final CommitterStatistics EMPTY_COMMITTER_STATISTICS
public static final BlockOutputStreamStatistics EMPTY_BLOCK_OUTPUT_STREAM_STATISTICS
public static final DelegationTokenStatistics EMPTY_DELEGATION_TOKEN_STATISTICS
public static final StatisticsFromAwsSdk EMPTY_STATISTICS_FROM_AWS_SDK
public S3AInputStreamStatistics newInputStreamStatistics()
S3AStatisticsContextnewInputStreamStatistics in interface S3AStatisticsContextpublic CommitterStatistics newCommitterStatistics()
S3AStatisticsContextnewCommitterStatistics in interface S3AStatisticsContextpublic BlockOutputStreamStatistics newOutputStreamStatistics()
S3AStatisticsContextnewOutputStreamStatistics in interface S3AStatisticsContextpublic DelegationTokenStatistics newDelegationTokenStatistics()
S3AStatisticsContextnewDelegationTokenStatistics in interface S3AStatisticsContextpublic StatisticsFromAwsSdk newStatisticsFromAwsSdk()
S3AStatisticsContextnewStatisticsFromAwsSdk in interface S3AStatisticsContextpublic S3AMultipartUploaderStatistics createMultipartUploaderStatistics()
S3AStatisticsContextcreateMultipartUploaderStatistics in interface S3AStatisticsContextpublic void incrementCounter(Statistic op, long count)
CountersAndGaugesincrementCounter in interface CountersAndGaugesop - operationcount - increment valuepublic void incrementGauge(Statistic op, long count)
CountersAndGaugesincrementGauge in interface CountersAndGaugesop - operationcount - increment valuepublic void decrementGauge(Statistic op, long count)
CountersAndGaugesdecrementGauge in interface CountersAndGaugesop - operationcount - increment valuepublic void addValueToQuantiles(Statistic op, long value)
CountersAndGaugesaddValueToQuantiles in interface CountersAndGaugesop - operation to look up.value - value to add.public void recordDuration(Statistic op, boolean success, Duration duration)
CountersAndGaugesrecordDuration in interface CountersAndGaugesop - operationsuccess - was the operation a success?duration - how long did it takeCopyright © 2008–2024 Apache Software Foundation. All rights reserved.