Class ControlCommand

java.lang.Object
org.apache.zookeeper.server.controller.ControlCommand

public class ControlCommand extends Object
Set of commands that this controller can execute. Commands are comprised of an action and an optional parameter specific to that action.
  • Field Details

  • Constructor Details

  • Method Details

    • getAction

      public ControlCommand.Action getAction()
    • getParameter

      protected String getParameter()
    • createCommandUri

      public static String createCommandUri(ControlCommand.Action action, String parameter)
      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

      public static ControlCommand parseUri(String commandUri)
      Parse a Uri into the required Command action and parameter.
      Parameters:
      commandUri - the properly formatted Uri.