Package org.apache.zookeeper.audit
Class AuditHelper
- java.lang.Object
-
- org.apache.zookeeper.audit.AuditHelper
-
public final class AuditHelper extends Object
Helper class to decouple audit log code.
-
-
Constructor Summary
Constructors Constructor Description AuditHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addAuditLog(Request request, DataTree.ProcessTxnResult rc)
static void
addAuditLog(Request request, DataTree.ProcessTxnResult txnResult, boolean failedTxn)
Add audit log if audit log is enabled and operation is of type which to be audit logged.
-
-
-
Method Detail
-
addAuditLog
public static void addAuditLog(Request request, DataTree.ProcessTxnResult rc)
-
addAuditLog
public static void addAuditLog(Request request, DataTree.ProcessTxnResult txnResult, boolean failedTxn)
Add audit log if audit log is enabled and operation is of type which to be audit logged.- Parameters:
request
- user requesttxnResult
- ProcessTxnResultfailedTxn
- whether audit is being done failed transaction for normal transaction
-
-