Class DiscoveryCommand<DiscoveryFlagsT 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<DiscoveryFlagsT>
-
- org.apache.bookkeeper.tools.cli.helpers.DiscoveryCommand<DiscoveryFlagsT>
-
- Direct Known Subclasses:
ListBookiesCommand
public abstract class DiscoveryCommand<DiscoveryFlagsT extends CliFlags> extends ClientCommand<DiscoveryFlagsT>
This is a mixin for commands that talks to discovery service.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDiscoveryCommand(CliSpec<DiscoveryFlagsT> spec)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanapply(ClientConfiguration clientConf, DiscoveryFlagsT cmdFlags)protected voidrun(BookKeeper bk, DiscoveryFlagsT cmdFlags)protected abstract voidrun(RegistrationClient regClient, DiscoveryFlagsT cmdFlags, boolean bookieAddressResolverEnabled)-
Methods inherited from class org.apache.bookkeeper.tools.cli.helpers.ClientCommand
apply, apply
-
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
-
DiscoveryCommand
protected DiscoveryCommand(CliSpec<DiscoveryFlagsT> spec)
-
-
Method Detail
-
apply
protected boolean apply(ClientConfiguration clientConf, DiscoveryFlagsT cmdFlags)
- Overrides:
applyin classClientCommand<DiscoveryFlagsT extends CliFlags>
-
run
protected void run(BookKeeper bk, DiscoveryFlagsT cmdFlags) throws java.lang.Exception
- Specified by:
runin classClientCommand<DiscoveryFlagsT extends CliFlags>- Throws:
java.lang.Exception
-
run
protected abstract void run(RegistrationClient regClient, DiscoveryFlagsT cmdFlags, boolean bookieAddressResolverEnabled) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-