public interface Command
CommandBase
,
Commands
,
JettyAdminServer
Modifier and Type | Method and Description |
---|---|
AuthRequest |
getAuthRequest() |
Set<String> |
getNames()
The set of all names that can be used to refer to this command (e.g.,
"configuration", "config", and "conf").
|
String |
getPrimaryName()
The name that is returned with the command response and that appears in
the list of all commands.
|
boolean |
isServerRequired() |
CommandResponse |
runGet(ZooKeeperServer zkServer,
Map<String,String> kwargs)
Run this command for HTTP GET request.
|
CommandResponse |
runPost(ZooKeeperServer zkServer,
InputStream inputStream)
Run this command for HTTP POST.
|
Set<String> getNames()
String getPrimaryName()
boolean isServerRequired()
AuthRequest getAuthRequest()
CommandResponse runGet(ZooKeeperServer zkServer, Map<String,String> kwargs)
zkServer
- ZooKeeper serverkwargs
- keyword -> argument value mappingCommandResponse runPost(ZooKeeperServer zkServer, InputStream inputStream)
zkServer
- ZooKeeper serverinputStream
- InputStream from requestCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.