Class NoopAuditor
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.fs.s3a.audit.impl.AbstractOperationAuditor
org.apache.hadoop.fs.s3a.audit.impl.NoopAuditor
- All Implemented Interfaces:
Closeable,AutoCloseable,OperationAuditor,org.apache.hadoop.fs.statistics.IOStatisticsSource,org.apache.hadoop.fs.store.audit.AuditSpanSource<AuditSpanS3A>,org.apache.hadoop.service.Service
An audit service which returns the
NoopSpan.
Even though the spans are no-ops, each span is still
created with a unique span ID.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields inherited from class org.apache.hadoop.fs.s3a.audit.impl.AbstractOperationAuditor
BASE -
Constructor Summary
ConstructorsConstructorDescriptionNoopAuditor(String name) Constructor.NoopAuditor(String name, NoopSpan.SpanActivationCallbacks activationCallbacks) Constructor when explicitly created within theNoopAuditManagerS3A. -
Method Summary
Modifier and TypeMethodDescriptionstatic NoopAuditorcreateAndStartNoopAuditor(org.apache.hadoop.conf.Configuration conf, NoopSpan.SpanActivationCallbacks activationCallbacks) Create, init and start an instance.createSpan(String operation, String path1, String path2) Get the unbonded span to use after deactivating an active span.Methods inherited from class org.apache.hadoop.fs.s3a.audit.impl.AbstractOperationAuditor
auditorFlagsChanged, createSpanID, getAuditorFlags, getAuditorId, getIOStatistics, getOptions, init, isRejectOutOfSpan, serviceInit, setAuditFlags, setRejectOutOfSpanMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.s3a.audit.OperationAuditor
checkAccess, noteSpanReferenceLostMethods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
NoopAuditor
Constructor. This will be used when the auditor is created through configuration and classloading.- Parameters:
name- auditor name
-
NoopAuditor
Constructor when explicitly created within theNoopAuditManagerS3A.- Parameters:
name- auditor nameactivationCallbacks- Activation callbacks.
-
NoopAuditor
public NoopAuditor()
-
-
Method Details
-
createSpan
-
getUnbondedSpan
Description copied from interface:OperationAuditorGet the unbonded span to use after deactivating an active span.- Returns:
- a span.
-
createAndStartNoopAuditor
public static NoopAuditor createAndStartNoopAuditor(org.apache.hadoop.conf.Configuration conf, NoopSpan.SpanActivationCallbacks activationCallbacks) Create, init and start an instance.- Parameters:
conf- configuration.activationCallbacks- Activation callbacks.- Returns:
- a started instance.
-