Package org.apache.pulsar.shell
Class PulsarShell
java.lang.Object
org.apache.pulsar.shell.PulsarShell
Main Pulsar shell class invokable from the pulsar-shell script.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AdminShellcreateAdminShell(Properties properties) protected ClientShellcreateClientShell(Properties properties) protected voidexit(int exitCode) static voidvoidreload(Properties properties) voidrun()voidrun(Function<Map<String, ShellCommandsProvider>, org.apache.pulsar.shell.PulsarShell.InteractiveLineReader> readerBuilder, Function<Map<String, ShellCommandsProvider>, org.jline.terminal.Terminal> terminalBuilder)
-
Constructor Details
-
PulsarShell
- Throws:
IOException
-
PulsarShell
- Throws:
IOException
-
-
Method Details
-
main
- Throws:
Exception
-
reload
- Throws:
Exception
-
run
- Throws:
Exception
-
run
public void run(Function<Map<String, ShellCommandsProvider>, throws Exceptionorg.apache.pulsar.shell.PulsarShell.InteractiveLineReader> readerBuilder, Function<Map<String, ShellCommandsProvider>, org.jline.terminal.Terminal> terminalBuilder) - Throws:
Exception
-
createAdminShell
- Throws:
Exception
-
createClientShell
-
exit
protected void exit(int exitCode)
-