Package org.apache.hadoop.fs.s3a.impl
Class AbstractStoreOperation
java.lang.Object
org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
- Direct Known Subclasses:
BulkDeleteOperation,BulkDeleteRetryHandler,CommitOperations,ExecutingStoreOperation,HeaderProcessing,Listing,MagicCommitIntegration
Base class of operations in the store.
An operation is something which executes against the context to
perform a single function.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStoreOperation(StoreContext storeContext) Constructor.protectedAbstractStoreOperation(StoreContext storeContext, org.apache.hadoop.fs.store.audit.AuditSpan auditSpan) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidActivate the audit span.org.apache.hadoop.fs.store.audit.AuditSpanGet the audit span this object was created with.final StoreContextGet the store context.
-
Constructor Details
-
AbstractStoreOperation
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
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.
-