Class CliCommandGroup<GlobalFlagsT extends CliFlags>
java.lang.Object
org.apache.bookkeeper.tools.framework.CliCommand<GlobalFlagsT,GlobalFlagsT>
org.apache.bookkeeper.tools.framework.CliCommandGroup<GlobalFlagsT>
- All Implemented Interfaces:
Command<GlobalFlagsT>,CommandGroup<GlobalFlagsT>
public abstract class CliCommandGroup<GlobalFlagsT extends CliFlags>
extends CliCommand<GlobalFlagsT,GlobalFlagsT>
implements CommandGroup<GlobalFlagsT>
A command group that group commands together. They share same global flags.
-
Field Summary
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(GlobalFlagsT globalFlags, String[] args) Process the command.voidusage()Print the help information.Methods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent
-
Constructor Details
-
CliCommandGroup
-
-
Method Details
-
apply
Description copied from interface:CommandProcess the command.- Specified by:
applyin interfaceCommand<GlobalFlagsT extends CliFlags>- Overrides:
applyin classCliCommand<GlobalFlagsT extends CliFlags,GlobalFlagsT extends CliFlags> args- command args- Returns:
- true if successfully apply the args, otherwise false
-
usage
public void usage()Description copied from interface:CommandPrint the help information.- Specified by:
usagein interfaceCommand<GlobalFlagsT extends CliFlags>- Overrides:
usagein classCliCommand<GlobalFlagsT extends CliFlags,GlobalFlagsT extends CliFlags>
-