Class BKCommand<CommandFlagsT extends CliFlags>
java.lang.Object
org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
org.apache.bookkeeper.tools.common.BKCommand<CommandFlagsT>
- Direct Known Subclasses:
BookieCommand,ClientCommand,CookieCommand
public abstract class BKCommand<CommandFlagsT extends CliFlags>
extends CliCommand<BKFlags,CommandFlagsT>
Base bk command class.
-
Field Summary
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptServiceUri(ServiceURI serviceURI) intapply(String commandName, org.apache.commons.configuration2.CompositeConfiguration conf, String[] args) Made this as public for allowing old bookie shell use new cli command.protected abstract booleanapply(ServiceURI serviceURI, org.apache.commons.configuration2.CompositeConfiguration conf, BKFlags globalFlags, CommandFlagsT cmdFlags) protected booleanapply(BKFlags bkFlags, CommandFlagsT cmdFlags) Process the command.Methods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
Constructor Details
-
BKCommand
-
-
Method Details
-
apply
Description copied from interface:CommandProcess the command.- Specified by:
applyin interfaceCommand<CommandFlagsT extends CliFlags>- Overrides:
applyin classCliCommand<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
-
acceptServiceUri
-
apply
protected abstract boolean apply(ServiceURI serviceURI, org.apache.commons.configuration2.CompositeConfiguration conf, BKFlags globalFlags, CommandFlagsT cmdFlags)
-