Class StatisticsFromAwsSdkImpl
java.lang.Object
org.apache.hadoop.fs.s3a.statistics.impl.StatisticsFromAwsSdkImpl
- All Implemented Interfaces:
StatisticsFromAwsSdk
Hook up AWS SDK Statistics to the S3 counters.
Durations are not currently being used; that could be changed in future once an effective strategy for reporting them is determined.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringMap error status codes to statistic names, excluding 404. 429 (google throttle events) are mapped to the 503 statistic.voidnoteAwsClientExecuteTime(Duration duration) Record how long a request took to execute on the client.voidnoteAwsRequestTime(Duration duration) Record how long a request took overall.voidnoteRequestMarshallTime(Duration duration) Record how long a request took to marshall into XML.voidnoteRequestSigningTime(Duration duration) Record how long a request took to sign, including any calls to EC2 credential endpoints.voidnoteResponseProcessingTime(Duration duration) Record how long it took to process the response.voidupdateAwsRequestCount(long count) Record a number of AWS requests.voidupdateAwsRetryCount(long count) Record a number of AWS request retries.voidupdateAwsThrottleExceptionsCount(long count) Record a number of throttle exceptions received.
-
Constructor Details
-
StatisticsFromAwsSdkImpl
-
-
Method Details
-
updateAwsRequestCount
public void updateAwsRequestCount(long count) Description copied from interface:StatisticsFromAwsSdkRecord a number of AWS requests.- Specified by:
updateAwsRequestCountin interfaceStatisticsFromAwsSdk- Parameters:
count- number of events.
-
updateAwsRetryCount
public void updateAwsRetryCount(long count) Description copied from interface:StatisticsFromAwsSdkRecord a number of AWS request retries.- Specified by:
updateAwsRetryCountin interfaceStatisticsFromAwsSdk- Parameters:
count- number of events.
-
updateAwsThrottleExceptionsCount
public void updateAwsThrottleExceptionsCount(long count) Description copied from interface:StatisticsFromAwsSdkRecord a number of throttle exceptions received.- Specified by:
updateAwsThrottleExceptionsCountin interfaceStatisticsFromAwsSdk- Parameters:
count- number of events.
-
noteAwsRequestTime
Description copied from interface:StatisticsFromAwsSdkRecord how long a request took overall.- Specified by:
noteAwsRequestTimein interfaceStatisticsFromAwsSdk- Parameters:
duration- duration of operation.
-
noteAwsClientExecuteTime
Description copied from interface:StatisticsFromAwsSdkRecord how long a request took to execute on the client.- Specified by:
noteAwsClientExecuteTimein interfaceStatisticsFromAwsSdk- Parameters:
duration- duration of operation.
-
noteRequestMarshallTime
Description copied from interface:StatisticsFromAwsSdkRecord how long a request took to marshall into XML.- Specified by:
noteRequestMarshallTimein interfaceStatisticsFromAwsSdk- Parameters:
duration- duration of operation.
-
noteRequestSigningTime
Description copied from interface:StatisticsFromAwsSdkRecord how long a request took to sign, including any calls to EC2 credential endpoints.- Specified by:
noteRequestSigningTimein interfaceStatisticsFromAwsSdk- Parameters:
duration- duration of operation.
-
noteResponseProcessingTime
Description copied from interface:StatisticsFromAwsSdkRecord how long it took to process the response.- Specified by:
noteResponseProcessingTimein interfaceStatisticsFromAwsSdk- Parameters:
duration- duration of operation.
-
mapErrorStatusCodeToStatisticName
Map error status codes to statistic names, excluding 404. 429 (google throttle events) are mapped to the 503 statistic.- Parameters:
sc- status code.- Returns:
- a statistic name or null.
-