Class AWSRequestAnalyzer

java.lang.Object
org.apache.hadoop.fs.s3a.audit.AWSRequestAnalyzer

public class AWSRequestAnalyzer extends Object
Extract information from a request. Intended for reporting and error logs.
  • Constructor Details

    • AWSRequestAnalyzer

      public AWSRequestAnalyzer()
  • Method Details

    • analyze

      public AWSRequestAnalyzer.RequestInfo analyze(software.amazon.awssdk.core.SdkRequest request)
      Given an AWS request, try to analyze it to operation, read/write and path.
      Parameters:
      request - request.
      Returns:
      information about the request.
    • isRequestNotAlwaysInSpan

      public static boolean isRequestNotAlwaysInSpan(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.
      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

      public static boolean isRequestMultipartIO(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.
      Parameters:
      request - request
      Returns:
      true if the transfer manager creates them.