@InterfaceAudience.Private public class LoggingAuditor extends AbstractOperationAuditor
BASE| Constructor and Description |
|---|
LoggingAuditor()
Create the auditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
String value)
Add an attribute.
|
AuditSpanS3A |
createSpan(String operation,
String path1,
String path2) |
String |
getLastHeader()
Get the last header used.
|
AuditSpanS3A |
getUnbondedSpan()
Get the unbonded span to use after deactivating an active
span.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
Service init, look for jobID and attach as an attribute in log entries.
|
String |
toString() |
createSpanID, getAuditorId, getIOStatistics, getOptions, initclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckAccess, noteSpanReferenceLostpublic LoggingAuditor()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceconf - configurationException - failurepublic String toString()
toString in class org.apache.hadoop.service.AbstractServicepublic AuditSpanS3A createSpan(String operation, @Nullable String path1, @Nullable String path2)
public final void addAttribute(String key, String value)
key - keyvalue - valuepublic AuditSpanS3A getUnbondedSpan()
OperationAuditorpublic String getLastHeader()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.