Class ClientCommand<ClientFlagsT extends CliFlags>
- java.lang.Object
-
- org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
-
- org.apache.bookkeeper.tools.common.BKCommand<ClientFlagsT>
-
- org.apache.bookkeeper.tools.cli.helpers.ClientCommand<ClientFlagsT>
-
- Direct Known Subclasses:
DiscoveryCommand
,SimpleTestCommand
public abstract class ClientCommand<ClientFlagsT extends CliFlags> extends BKCommand<ClientFlagsT>
This is a mixin class for commands that needs a bookkeeper client.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClientCommand(CliSpec<ClientFlagsT> spec)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
apply(ServiceURI serviceURI, org.apache.commons.configuration.CompositeConfiguration conf, BKFlags globalFlags, ClientFlagsT cmdFlags)
protected boolean
apply(ClientConfiguration conf, ClientFlagsT cmdFlags)
boolean
apply(ServerConfiguration conf, ClientFlagsT cmdFlags)
protected abstract void
run(BookKeeper bk, ClientFlagsT cmdFlags)
-
Methods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, apply
-
Methods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
-
-
-
Constructor Detail
-
ClientCommand
protected ClientCommand(CliSpec<ClientFlagsT> spec)
-
-
Method Detail
-
apply
protected boolean apply(ServiceURI serviceURI, org.apache.commons.configuration.CompositeConfiguration conf, BKFlags globalFlags, ClientFlagsT cmdFlags)
- Specified by:
apply
in classBKCommand<ClientFlagsT extends CliFlags>
-
apply
public boolean apply(ServerConfiguration conf, ClientFlagsT cmdFlags)
-
apply
protected boolean apply(ClientConfiguration conf, ClientFlagsT cmdFlags)
-
run
protected abstract void run(BookKeeper bk, ClientFlagsT cmdFlags) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-