Package org.apache.hadoop.fs.s3a.audit
Class AWSRequestAnalyzer
java.lang.Object
org.apache.hadoop.fs.s3a.audit.AWSRequestAnalyzer
Extract information from a request.
Intended for reporting and error logs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInfo about a request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(software.amazon.awssdk.core.SdkRequest request) Given an AWS request, try to analyze it to operation, read/write and path.static booleanisRequestAuditedOutsideOfCurrentSpan(software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) If spanId and operation name are set by dependencies such as AAL, then this returns true.static booleanisRequestMultipartIO(Object request) Predicate which returns true if the request is part of the multipart upload API -and which therefore must be rejected if multipart upload is disabled.static booleanisRequestNotAlwaysInSpan(Object request) Predicate which returns true if the request is of a kind which could be outside a span because of how the AWS SDK generates them.
-
Constructor Details
-
AWSRequestAnalyzer
public AWSRequestAnalyzer()
-
-
Method Details
-
analyze
Given an AWS request, try to analyze it to operation, read/write and path.- Parameters:
request- request.- Returns:
- information about the request.
-
isRequestNotAlwaysInSpan
Predicate which returns true if the request is of a kind which could be outside a span because of how the AWS SDK generates them.- Parameters:
request- request- Returns:
- true if the transfer manager creates them.
-
isRequestAuditedOutsideOfCurrentSpan
public static boolean isRequestAuditedOutsideOfCurrentSpan(software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) If spanId and operation name are set by dependencies such as AAL, then this returns true. Allows for auditing of requests which are made outside S3A's requestFactory.- Parameters:
executionAttributes- request execution attributes- Returns:
- true if request is audited outside of current span
-
isRequestMultipartIO
Predicate which returns true if the request is part of the multipart upload API -and which therefore must be rejected if multipart upload is disabled.- Parameters:
request- request- Returns:
- true if the transfer manager creates them.
-