@InterfaceAudience.Private public class NoopAuditManagerS3A extends org.apache.hadoop.service.CompositeService implements AuditManagerS3A, NoopSpan.SpanActivationCallbacks
| Constructor and Description |
|---|
NoopAuditManagerS3A()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(AuditSpanS3A span)
Span was activated.
|
boolean |
checkAccess(org.apache.hadoop.fs.Path path,
S3AFileStatus status,
org.apache.hadoop.fs.permission.FsAction mode)
Forward to the auditor.
|
List<software.amazon.awssdk.core.interceptor.ExecutionInterceptor> |
createExecutionInterceptors()
Create the execution interceptor(s) for this audit service.
|
static AuditSpanS3A |
createNewSpan(String name,
String path1,
String path2)
A static source of no-op spans, using the same span ID
source as managed spans.
|
AuditSpanS3A |
createSpan(String operation,
String path1,
String path2) |
software.amazon.awssdk.transfer.s3.progress.TransferListener |
createTransferListener()
Return a transfer callback which
fixes the active span context to be that in which
the transfer listener was created.
|
void |
deactivate(AuditSpanS3A span)
Span was deactivated.
|
AuditSpanS3A |
getActiveAuditSpan() |
OperationAuditor |
getAuditor()
Get the auditor; valid once initialized.
|
String |
getOperationName()
Get the name of the operation.
|
String |
getSpanId()
Return a span ID which must be unique for all spans within
everywhere.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
addIfService, addService, getServices, removeService, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStoprequestCreatedafterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailurepublic NoopAuditManagerS3A()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic String getSpanId()
AWSAuditEventCallbacksgetSpanId in interface AWSAuditEventCallbackspublic String getOperationName()
AWSAuditEventCallbacksgetOperationName in interface AWSAuditEventCallbackspublic OperationAuditor getAuditor()
AuditManagerS3AgetAuditor in interface AuditManagerS3Apublic AuditSpanS3A getActiveAuditSpan()
getActiveAuditSpan in interface org.apache.hadoop.fs.store.audit.ActiveThreadSpanSource<AuditSpanS3A>public AuditSpanS3A createSpan(String operation, @Nullable String path1, @Nullable String path2) throws IOException
createSpan in interface org.apache.hadoop.fs.store.audit.AuditSpanSource<AuditSpanS3A>IOExceptionpublic List<software.amazon.awssdk.core.interceptor.ExecutionInterceptor> createExecutionInterceptors() throws IOException
AuditManagerS3AcreateExecutionInterceptors in interface AuditManagerS3AIOException - failure.public software.amazon.awssdk.transfer.s3.progress.TransferListener createTransferListener()
AuditManagerS3AcreateTransferListener in interface AuditManagerS3Apublic boolean checkAccess(org.apache.hadoop.fs.Path path,
S3AFileStatus status,
org.apache.hadoop.fs.permission.FsAction mode)
throws IOException
checkAccess in interface AuditManagerS3Apath - path to checkstatus - status of the path.mode - access mode.IOException - failurepublic void activate(AuditSpanS3A span)
NoopSpan.SpanActivationCallbacksactivate in interface NoopSpan.SpanActivationCallbacksspan - span reference.public void deactivate(AuditSpanS3A span)
NoopSpan.SpanActivationCallbacksdeactivate in interface NoopSpan.SpanActivationCallbacksspan - span reference.public static AuditSpanS3A createNewSpan(String name, String path1, String path2)
name - operation name.path1 - first path of operationpath2 - second path of operationCopyright © 2008–2024 Apache Software Foundation. All rights reserved.