public abstract class AbstractOperationAuditor extends org.apache.hadoop.service.AbstractService implements OperationAuditor
AUDIT_SPAN_START statistic configured for counting durations.| Modifier and Type | Field and Description |
|---|---|
static String |
BASE
Base of IDs is a UUID.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOperationAuditor(String name)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
auditorFlagsChanged(EnumSet<AuditorFlags> flags)
Notification that the auditor flags have been updated.
|
protected String |
createSpanID()
Create a span ID.
|
EnumSet<AuditorFlags> |
getAuditorFlags()
Get the current set of auditor flags.
|
String |
getAuditorId()
Get the Auditor ID.
|
org.apache.hadoop.fs.statistics.impl.IOStatisticsStore |
getIOStatistics()
Get the IOStatistics Store.
|
protected OperationAuditorOptions |
getOptions()
Get the options this auditor was initialized with.
|
void |
init(OperationAuditorOptions opts)
Sets the IOStats and then calls init().
|
protected boolean |
isRejectOutOfSpan()
Should out of scope ops be rejected?
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
setAuditFlags(EnumSet<AuditorFlags> flags)
Update Auditor flags.
|
protected void |
setRejectOutOfSpan(boolean rejectOutOfSpan)
Enable/disable out of span rejection.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckAccess, getUnbondedSpan, noteSpanReferenceLostpublic static final String BASE
protected AbstractOperationAuditor(String name)
name - namepublic void init(OperationAuditorOptions opts)
init in interface OperationAuditoropts - options to initialize with.protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic String getAuditorId()
OperationAuditorgetAuditorId in interface OperationAuditorpublic org.apache.hadoop.fs.statistics.impl.IOStatisticsStore getIOStatistics()
getIOStatistics in interface org.apache.hadoop.fs.statistics.IOStatisticsSourceprotected OperationAuditorOptions getOptions()
protected final String createSpanID()
protected boolean isRejectOutOfSpan()
protected void setRejectOutOfSpan(boolean rejectOutOfSpan)
rejectOutOfSpan - new value.public void setAuditFlags(EnumSet<AuditorFlags> flags)
auditorFlagsChanged(EnumSet) after the update.setAuditFlags in interface OperationAuditorflags - audit flags.public EnumSet<AuditorFlags> getAuditorFlags()
protected void auditorFlagsChanged(EnumSet<AuditorFlags> flags)
flags - audit flags.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.