Package org.apache.pulsar.shell
Class AdminShell
java.lang.Object
org.apache.pulsar.admin.cli.PulsarAdminTool
org.apache.pulsar.shell.AdminShell
- All Implemented Interfaces:
CommandHook,ShellCommandsProvider
Pulsar Admin tool extension for Pulsar shell.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.admin.cli.PulsarAdminTool
PulsarAdminTool.RootParams -
Field Summary
Fields inherited from class org.apache.pulsar.admin.cli.PulsarAdminTool
allowSystemExit, commander, commandMap, customCommandFactories, pulsarAdminSupplier, rootParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCurrent admin url for connecting to pulsar admin.picocli.CommandLineReturn commander instance.getName()Name of the commands.Current service url for connecting to brokers.Methods inherited from class org.apache.pulsar.admin.cli.PulsarAdminTool
execute, getPulsarAdminSupplier, main, preRun, run, setCommandName
-
Constructor Details
-
AdminShell
- Throws:
Exception
-
-
Method Details
-
getName
Description copied from interface:ShellCommandsProviderName of the commands. This will be used as program name.- Specified by:
getNamein interfaceShellCommandsProvider- Returns:
-
getServiceUrl
Description copied from interface:ShellCommandsProviderCurrent service url for connecting to brokers. If the provider doesn't need brokers connection or the service url is not set it must return null.- Specified by:
getServiceUrlin interfaceShellCommandsProvider- Returns:
- service url
-
getAdminUrl
Description copied from interface:ShellCommandsProviderCurrent admin url for connecting to pulsar admin. If the provider doesn't need brokers connection or the admin url is not set it must return null.- Specified by:
getAdminUrlin interfaceShellCommandsProvider- Overrides:
getAdminUrlin classPulsarAdminTool- Returns:
- admin url
-
getCommander
public picocli.CommandLine getCommander()Description copied from interface:ShellCommandsProviderReturn commander instance.- Specified by:
getCommanderin interfaceShellCommandsProvider- Returns:
- Non-null.
-