Class AbstractStoreOperation

java.lang.Object
org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
Direct Known Subclasses:
BulkDeleteOperation, BulkDeleteRetryHandler, CommitOperations, ExecutingStoreOperation, HeaderProcessing, Listing, MagicCommitIntegration

public abstract class AbstractStoreOperation extends Object
Base class of operations in the store. An operation is something which executes against the context to perform a single function.
  • Constructor Details

    • AbstractStoreOperation

      protected AbstractStoreOperation(@Nullable StoreContext storeContext)
      Constructor. Picks up the active audit span from the store context and stores it for later.
      Parameters:
      storeContext - store context.
    • AbstractStoreOperation

      protected AbstractStoreOperation(@Nullable StoreContext storeContext, org.apache.hadoop.fs.store.audit.AuditSpan auditSpan)
      Constructor.
      Parameters:
      storeContext - store context.
      auditSpan - active span
  • Method Details

    • getStoreContext

      public final StoreContext getStoreContext()
      Get the store context.
      Returns:
      the context.
    • getAuditSpan

      public org.apache.hadoop.fs.store.audit.AuditSpan getAuditSpan()
      Get the audit span this object was created with.
      Returns:
      the current span or null
    • activateAuditSpan

      public void activateAuditSpan()
      Activate the audit span.