diff options
author | li4wang <68786536+li4wang@users.noreply.github.com> | 2023-02-24 07:20:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 16:20:58 +0100 |
commit | d79811bf28f00fb1db6ec6002e884af6cfd0d7fc (patch) | |
tree | ae9c7af2e6dc4633650f991df6a598fe257f813e /zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java | |
parent | 255b0c9137a75635cf6e2c112672a045c58ce1cf (diff) | |
download | zookeeper-d79811bf28f00fb1db6ec6002e884af6cfd0d7fc.tar.gz |
ZOOKEEPER-4639: Provide auth support for admin server APIs (#1966)
Author: Li Wang <liwang@apple.com>
Diffstat (limited to 'zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java')
-rw-r--r-- | zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java index 5d06356b2..5bc332a28 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java +++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java @@ -46,18 +46,17 @@ public interface Command { String getPrimaryName(); /** - * A string documenting this command (e.g., what it does, any arguments it - * takes). - */ - String getDoc(); - - /** * @return true if the command requires an active ZooKeeperServer or a * synced peer in order to resolve */ boolean isServerRequired(); /** + * @return AuthRequest associated to the command. Null means auth check is not required. + */ + AuthRequest getAuthRequest(); + + /** * Run this command for HTTP GET request. Commands take a ZooKeeperServer, String-valued keyword * arguments and return a CommandResponse object containing any information * constituting the response to the command. Commands are responsible for |