public class AwsStatisticsCollector extends Object implements software.amazon.awssdk.metrics.MetricPublisher
StatisticsFromAwsSdk and thence into the S3A statistics.
See com.facebook.presto.hive.s3.PrestoS3FileSystemMetricCollector
for the inspiration for this.
See software.amazon.awssdk.core.metrics.CoreMetric for metric names.
| Constructor and Description |
|---|
AwsStatisticsCollector(StatisticsFromAwsSdk collector)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
publish(software.amazon.awssdk.metrics.MetricCollection metricCollection)
This is the callback from the AWS SDK where metrics
can be collected.
|
public AwsStatisticsCollector(StatisticsFromAwsSdk collector)
collector - final destination of updatespublic void publish(software.amazon.awssdk.metrics.MetricCollection metricCollection)
publish in interface software.amazon.awssdk.metrics.MetricPublishermetricCollection - metrics collectionpublic void close()
close in interface AutoCloseableclose in interface software.amazon.awssdk.metrics.MetricPublisherclose in interface software.amazon.awssdk.utils.SdkAutoCloseableCopyright © 2008–2024 Apache Software Foundation. All rights reserved.