Class BKCommand<CommandFlagsT extends CliFlags>

java.lang.Object
org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
org.apache.bookkeeper.tools.common.BKCommand<CommandFlagsT>
All Implemented Interfaces:
Command<BKFlags>
Direct Known Subclasses:
BookieCommand, ClientCommand, CookieCommand

public abstract class BKCommand<CommandFlagsT extends CliFlags> extends CliCommand<BKFlags,CommandFlagsT>
Base bk command class.
  • Constructor Details

  • Method Details

    • apply

      public Boolean apply(BKFlags globalFlags, String[] args)
      Description copied from interface: Command
      Process the command.
      Specified by:
      apply in interface Command<CommandFlagsT extends CliFlags>
      Overrides:
      apply in class CliCommand<BKFlags,CommandFlagsT extends CliFlags>
      args - command args
      Returns:
      true if successfully apply the args, otherwise false
    • apply

      @Private public int apply(String commandName, org.apache.commons.configuration2.CompositeConfiguration conf, String[] args)
      Made this as public for allowing old bookie shell use new cli command. This should be removed once we get rid of the old bookie shell.
    • apply

      protected boolean apply(BKFlags bkFlags, CommandFlagsT cmdFlags)
    • acceptServiceUri

      protected boolean acceptServiceUri(ServiceURI serviceURI)
    • apply

      protected abstract boolean apply(ServiceURI serviceURI, org.apache.commons.configuration2.CompositeConfiguration conf, BKFlags globalFlags, CommandFlagsT cmdFlags)