Package org.apache.pulsar.testclient
Class CmdBase
java.lang.Object
org.apache.pulsar.testclient.CmdBase
- Direct Known Subclasses:
BrokerMonitor,CmdGenerateDocumentation,LoadSimulationClient,LoadSimulationController,ManagedLedgerWriter,PerformanceBaseArguments,PerformanceClient
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCommand(String name, Object cmd) protected voidaddCommand(String name, Object cmd, String... aliases) call()protected picocli.CommandLinevoidabstract voidrun()booleanvoidvalidate()Validate the CLI arguments.
-
Constructor Details
-
CmdBase
-
-
Method Details
-
run
-
parse
-
validate
Validate the CLI arguments. Default implementation provides validation for the common arguments. Each subclass should call super.validate() and provide validation code specific to the sub-command.- Throws:
Exception
-
call
-
run
- Throws:
Exception
-
getCommander
protected picocli.CommandLine getCommander() -
addCommand
-
addCommand
-