summaryrefslogtreecommitdiff
path: root/zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java
diff options
context:
space:
mode:
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.java11
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