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 String |
createSpanID()
Create a span ID.
|
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().
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckAccess, getUnbondedSpanpublic static final String BASE
protected AbstractOperationAuditor(String name)
name - namepublic void init(OperationAuditorOptions opts)
init in interface OperationAuditoropts - options to initialize with.public 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()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.