Package org.apache.pulsar.admin.cli
Class PulsarAdminTool
java.lang.Object
org.apache.pulsar.admin.cli.PulsarAdminTool
- All Implemented Interfaces:
CommandHook
- Direct Known Subclasses:
AdminShell
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected final picocli.CommandLineprotected List<CustomCommandFactory> protected PulsarAdminSupplierprotected PulsarAdminTool.RootParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PulsarAdminToolprotected Stringstatic voidintpreRun()The preRun hook is used to execute commands before.protected booleanprotected voidsetCommandName(String name)
-
Field Details
-
allowSystemExit
protected static boolean allowSystemExit -
customCommandFactories
-
commandMap
-
commander
protected final picocli.CommandLine commander -
rootParams
-
pulsarAdminSupplier
-
-
Constructor Details
-
PulsarAdminTool
- Throws:
Exception
-
-
Method Details
-
run
-
main
- Throws:
Exception
-
execute
- Throws:
Exception
-
preRun
public int preRun()Description copied from interface:CommandHookThe preRun hook is used to execute commands before.- Specified by:
preRunin interfaceCommandHook- Returns:
- If the return value is 0, continue to the next stage.
-
getPulsarAdminSupplier
-
setCommandName
-
getAdminUrl
-