Class ControlCommand
java.lang.Object
org.apache.zookeeper.server.controller.ControlCommand
Set of commands that this controller can execute. Commands are comprised
of an action and an optional parameter specific to that action.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumActions available to the controller -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControlCommand(ControlCommand.Action action) ControlCommand(ControlCommand.Action action, String param) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateCommandUri(ControlCommand.Action action, String parameter) Create a REST command uri.protected Stringstatic ControlCommandParse a Uri into the required Command action and parameter.
-
Field Details
-
ENDPOINT
- See Also:
-
ENDPOINT_PREFIX
- See Also:
-
-
Constructor Details
-
ControlCommand
-
ControlCommand
-
-
Method Details
-
getAction
-
getParameter
-
createCommandUri
Create a REST command uri.- Parameters:
action- The 'verb' of the command.parameter- The optional parameter.- Returns:
- A string to send to the server as the end of the Uri.
-
parseUri
Parse a Uri into the required Command action and parameter.- Parameters:
commandUri- the properly formatted Uri.
-