Class AuthRequest


  • public class AuthRequest
    extends Object
    Class representing auth data for performing ACL check on admin server commands. For example, SnapshotCommand requires ZooDefs.Perms.ALL permission on the root node.
    • Constructor Detail

      • AuthRequest

        public AuthRequest​(int permission,
                           String path)
        Parameters:
        permission - the required permission for auth check
        path - the ZNode path for auth check
    • Method Detail

      • getPermission

        public int getPermission()
        Returns:
        permission
      • getPath

        public String getPath()
        Returns:
        ZNode path