public class ZKAuditProvider extends Object
Constructor and Description |
---|
ZKAuditProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
addServerStartFailureAuditLog()
Add audit log for server start fail.
|
static void |
addZKStartStopAuditLog()
Add audit log for server start and register server stop log.
|
static String |
getZKUser()
User who has started the ZooKeeper server user, it will be the logged-in
user.
|
static boolean |
isAuditEnabled() |
static void |
log(String user,
String operation,
String znode,
String acl,
String createMode,
String session,
String ip,
AuditEvent.Result result) |
public static boolean isAuditEnabled()
public static void log(String user, String operation, String znode, String acl, String createMode, String session, String ip, AuditEvent.Result result)
public static void addZKStartStopAuditLog()
public static void addServerStartFailureAuditLog()
public static String getZKUser()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.