Class NoopAuditor

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.fs.s3a.audit.impl.AbstractOperationAuditor
org.apache.hadoop.fs.s3a.audit.impl.NoopAuditor
All Implemented Interfaces:
Closeable, AutoCloseable, OperationAuditor, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.store.audit.AuditSpanSource<AuditSpanS3A>, org.apache.hadoop.service.Service

public class NoopAuditor extends AbstractOperationAuditor
An audit service which returns the NoopSpan. Even though the spans are no-ops, each span is still created with a unique span ID.
  • Constructor Details

    • NoopAuditor

      public NoopAuditor(String name)
      Constructor. This will be used when the auditor is created through configuration and classloading.
      Parameters:
      name - auditor name
    • NoopAuditor

      public NoopAuditor(String name, NoopSpan.SpanActivationCallbacks activationCallbacks)
      Constructor when explicitly created within the NoopAuditManagerS3A.
      Parameters:
      name - auditor name
      activationCallbacks - Activation callbacks.
    • NoopAuditor

      public NoopAuditor()
  • Method Details

    • createSpan

      public AuditSpanS3A createSpan(String operation, @Nullable String path1, @Nullable String path2)
    • getUnbondedSpan

      public AuditSpanS3A getUnbondedSpan()
      Description copied from interface: OperationAuditor
      Get the unbonded span to use after deactivating an active span.
      Returns:
      a span.
    • createAndStartNoopAuditor

      public static NoopAuditor createAndStartNoopAuditor(org.apache.hadoop.conf.Configuration conf, NoopSpan.SpanActivationCallbacks activationCallbacks)
      Create, init and start an instance.
      Parameters:
      conf - configuration.
      activationCallbacks - Activation callbacks.
      Returns:
      a started instance.