@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.
|
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.
|
List<com.amazonaws.handlers.RequestHandler2> |
createRequestHandlers()
Create the request handler(s) for this audit service.
|
AuditSpanS3A |
createSpan(String operation,
String path1,
String path2) |
com.amazonaws.services.s3.transfer.internal.TransferStateChangeListener |
createStateChangeListener()
Return a transfer state change callback which
fixes the active span context to be that in which
the state change 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, waitForServiceToStopafterAttempt, afterError, afterResponse, beforeAttempt, beforeExecution, beforeMarshalling, beforeRequest, beforeUnmarshalling, requestCreatedpublic 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<com.amazonaws.handlers.RequestHandler2> createRequestHandlers() throws IOException
AuditManagerS3AcreateRequestHandlers in interface AuditManagerS3AIOException - failure.public com.amazonaws.services.s3.transfer.internal.TransferStateChangeListener createStateChangeListener()
AuditManagerS3AcreateStateChangeListener 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–2022 Apache Software Foundation. All rights reserved.