Class ZKAuditProvider


  • public class ZKAuditProvider
    extends Object
    • Constructor Detail

      • ZKAuditProvider

        public ZKAuditProvider()
    • Method Detail

      • isAuditEnabled

        public static boolean isAuditEnabled()
        Returns:
        true if audit log is enabled
      • addZKStartStopAuditLog

        public static void addZKStartStopAuditLog()
        Add audit log for server start and register server stop log.
      • addServerStartFailureAuditLog

        public static void addServerStartFailureAuditLog()
        Add audit log for server start fail.
      • getZKUser

        public static String getZKUser()
        User who has started the ZooKeeper server user, it will be the logged-in user. If no user logged-in then system user.