public class AwsStatisticsCollector
extends com.amazonaws.metrics.RequestMetricCollector
StatisticsFromAwsSdk and thence into the S3A statistics.
See com.facebook.presto.hive.s3.PrestoS3FileSystemMetricCollector
for the inspiration for this.
See com.amazonaws.util.AWSRequestMetrics for metric names.
| Constructor and Description |
|---|
AwsStatisticsCollector(StatisticsFromAwsSdk collector)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectMetrics(com.amazonaws.Request<?> request,
com.amazonaws.Response<?> response)
This is the callback from the AWS SDK where metrics
can be collected.
|
public AwsStatisticsCollector(StatisticsFromAwsSdk collector)
collector - final destination of updatespublic void collectMetrics(com.amazonaws.Request<?> request,
com.amazonaws.Response<?> response)
collectMetrics in class com.amazonaws.metrics.RequestMetricCollectorrequest - AWS requestresponse - AWS responseCopyright © 2008–2022 Apache Software Foundation. All rights reserved.