public final class AuditIntegration extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.amazonaws.HandlerContextAware> |
attachSpanToRequest(T request,
AWSAuditEventCallbacks span)
Attach a span to a handler context.
|
static OperationAuditor |
createAndInitAuditor(org.apache.hadoop.conf.Configuration conf,
String key,
OperationAuditorOptions options)
Create and initialize an audit service.
|
static AuditManagerS3A |
createAndStartAuditManager(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.statistics.impl.IOStatisticsStore iostatistics)
Create and start an audit manager.
|
static <T extends com.amazonaws.HandlerContextAware> |
retrieveAttachedSpan(T request)
Get the span from a handler context.
|
static AuditManagerS3A |
stubAuditManager()
Return a stub audit manager.
|
public static AuditManagerS3A createAndStartAuditManager(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.statistics.impl.IOStatisticsStore iostatistics)
conf - configurationiostatistics - IOStatistics source.public static AuditManagerS3A stubAuditManager()
public static OperationAuditor createAndInitAuditor(org.apache.hadoop.conf.Configuration conf, String key, OperationAuditorOptions options) throws IOException
conf - configuration to read the key from and to use to init
the service.key - key containing the classnameoptions - options to initialize with.IOException - failure to initialise.public static <T extends com.amazonaws.HandlerContextAware> AWSAuditEventCallbacks retrieveAttachedSpan(T request)
T - type of request.request - requestpublic static <T extends com.amazonaws.HandlerContextAware> void attachSpanToRequest(T request,
AWSAuditEventCallbacks span)
T - type of request.request - requestspan - span to attachCopyright © 2008–2022 Apache Software Foundation. All rights reserved.