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()
S3AStatisticsContext
newInputStreamStatistics
in interface S3AStatisticsContext
public CommitterStatistics newCommitterStatistics()
S3AStatisticsContext
newCommitterStatistics
in interface S3AStatisticsContext
public BlockOutputStreamStatistics newOutputStreamStatistics()
S3AStatisticsContext
newOutputStreamStatistics
in interface S3AStatisticsContext
public DelegationTokenStatistics newDelegationTokenStatistics()
S3AStatisticsContext
newDelegationTokenStatistics
in interface S3AStatisticsContext
public StatisticsFromAwsSdk newStatisticsFromAwsSdk()
S3AStatisticsContext
newStatisticsFromAwsSdk
in interface S3AStatisticsContext
public S3AMultipartUploaderStatistics createMultipartUploaderStatistics()
S3AStatisticsContext
createMultipartUploaderStatistics
in interface S3AStatisticsContext
public void incrementCounter(Statistic op, long count)
CountersAndGauges
incrementCounter
in interface CountersAndGauges
op
- operationcount
- increment valuepublic void incrementGauge(Statistic op, long count)
CountersAndGauges
incrementGauge
in interface CountersAndGauges
op
- operationcount
- increment valuepublic void decrementGauge(Statistic op, long count)
CountersAndGauges
decrementGauge
in interface CountersAndGauges
op
- operationcount
- increment valuepublic void addValueToQuantiles(Statistic op, long value)
CountersAndGauges
addValueToQuantiles
in interface CountersAndGauges
op
- operation to look up.value
- value to add.public void recordDuration(Statistic op, boolean success, Duration duration)
CountersAndGauges
recordDuration
in interface CountersAndGauges
op
- operationsuccess
- was the operation a success?duration
- how long did it takeCopyright © 2008–2024 Apache Software Foundation. All rights reserved.