Package org.apache.pulsar.client.cli
Class PulsarClientTool
java.lang.Object
org.apache.pulsar.client.cli.PulsarClientTool
- All Implemented Interfaces:
CommandHook
- Direct Known Subclasses:
ClientShell
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final picocli.CommandLineprotected CmdConsumeprotected CmdProduceprotected CmdReadprotected PulsarClientTool.RootParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCommand(String name, Object cmd) protected Stringprotected voidinitCommander(Properties properties) static voidintpreRun()The preRun hook is used to execute commands before.voidreplaceProducerCommand(CmdProduce object) intprotected voidsetCommandName(String name)
-
Field Details
-
rootParams
-
commander
protected final picocli.CommandLine commander -
produceCommand
-
consumeCommand
-
readCommand
-
-
Constructor Details
-
PulsarClientTool
-
-
Method Details
-
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.
-
initCommander
-
addCommand
-
run
-
main
- Throws:
Exception
-
replaceProducerCommand
-
setCommandName
-
getServiceUrl
-