Class AbstractAuditSpanImpl
java.lang.Object
org.apache.hadoop.fs.s3a.audit.impl.AbstractAuditSpanImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,AuditSpanS3A,AWSAuditEventCallbacks,org.apache.hadoop.fs.store.audit.AuditSpan,software.amazon.awssdk.core.interceptor.ExecutionInterceptor
- Direct Known Subclasses:
NoopSpan
Base class for the audit spans implementations..
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAuditSpanImpl(String spanId, long timestamp, String operationName) Constructor.protectedAbstractAuditSpanImpl(String spanId, String operationName) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.store.audit.AuditSpan
deactivate, isValidSpan, setMethods inherited from interface org.apache.hadoop.fs.s3a.audit.AWSAuditEventCallbacks
requestCreatedMethods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
-
Constructor Details
-
AbstractAuditSpanImpl
Constructor.- Parameters:
spanId- span ID.operationName- operation name
-
AbstractAuditSpanImpl
Constructor.- Parameters:
spanId- span ID.timestamp- timestamp in millisoperationName- operation name
-
-
Method Details
-
getSpanId
Description copied from interface:AWSAuditEventCallbacksReturn a span ID which must be unique for all spans within everywhere. That effectively means part of the span SHOULD be derived from a UUID. Callers MUST NOT make any assumptions about the actual contents or structure of this string other than the uniqueness.- Specified by:
getSpanIdin interfaceorg.apache.hadoop.fs.store.audit.AuditSpan- Specified by:
getSpanIdin interfaceAWSAuditEventCallbacks- Returns:
- a non-empty string
-
getOperationName
Description copied from interface:AWSAuditEventCallbacksGet the name of the operation.- Specified by:
getOperationNamein interfaceorg.apache.hadoop.fs.store.audit.AuditSpan- Specified by:
getOperationNamein interfaceAWSAuditEventCallbacks- Returns:
- the operation name.
-
getTimestamp
public final long getTimestamp()- Specified by:
getTimestampin interfaceorg.apache.hadoop.fs.store.audit.AuditSpan
-
activate
- Specified by:
activatein interfaceorg.apache.hadoop.fs.store.audit.AuditSpan
-
close
public final void close()InvokeAuditSpan.deactivate(). This is final: subclasses MUST override thedeactivate()method.- Specified by:
closein interfaceorg.apache.hadoop.fs.store.audit.AuditSpan- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-