Index
All Classes and Interfaces|All Packages
A
- asLineOutputStream(Charset) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Returns a line based OutputStream wrapping this Terminal's println.
D
- DEFAULT - Static variable in class org.elasticsearch.cli.terminal.Terminal
-
The default terminal implementation, which will be a console if available, or stdout/stderr if not.
- delegateTo(Terminal) - Method in class org.elasticsearch.cli.terminal.Terminal
E
- EcsJsonUtils - Class in org.elasticsearch.cli.terminal.internal
-
Minimal, zero-dependency ECS JSON formatter for CLI and launcher output.
- equals(Object) - Method in record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Indicates whether some other object is "equal to" this one.
- err() - Method in record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Returns the value of the
errrecord component. - errorPrint(Terminal.Verbosity, String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal's standard error at
Terminal.Verbosity.NORMALverbosity level, without a newline. - errorPrintln(String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal's standard error at
Terminal.Verbosity.NORMALverbosity level. - errorPrintln(Throwable) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a stacktrace to the terminal's standard error at
Terminal.Verbosity.SILENTverbosity level. - errorPrintln(Terminal.Verbosity, String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal's standard error at
verbositylevel. - errorPrintln(Terminal.Verbosity, String, boolean) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal's standard error at
verbositylevel, with an optional flush - errorPrintln(Terminal.Verbosity, Throwable) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a stacktrace to the terminal's standard error at
verbositylevel.
F
- flush() - Method in class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
- flush() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Flush the outputs of this terminal.
- formatJson(String, String, CharSequence) - Static method in class org.elasticsearch.cli.terminal.internal.EcsJsonUtils
-
Formats a plain message as a single-line ECS JSON string.
- formatJson(String, String, CharSequence, Throwable) - Static method in class org.elasticsearch.cli.terminal.internal.EcsJsonUtils
-
Formats a message with a throwable as a single-line ECS JSON string (no trailing newline).
G
- getInputStream() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Returns an InputStream which can be used to read from the terminal directly using standard input.
- getOutputStream() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Returns an OutputStream which can be used to write to the terminal directly using standard output.
- getReader() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Returns a Reader which can be used to read directly from the terminal using standard input.
- getVerbosity() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Return the current verbosity level of this terminal.
H
- hashCode() - Method in record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Returns a hash code value for this object.
I
- installSystemStreams() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Captures the current system streams and, if this terminal requires it, replaces them with terminal-aware wrappers.
- isHeadless() - Method in class org.elasticsearch.cli.terminal.Terminal
-
Indicates whether this terminal is for a headless system i.e.
- isPrintable(Terminal.Verbosity) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Checks if is enough
verbositylevel to be printed
L
- looksLikeJson(CharSequence) - Static method in class org.elasticsearch.cli.terminal.internal.EcsJsonUtils
-
Returns
trueif the line appears to already be a JSON object.
N
- NORMAL - Enum constant in enum class org.elasticsearch.cli.terminal.Terminal.Verbosity
O
- org.elasticsearch.cli.terminal - module org.elasticsearch.cli.terminal
-
Terminal I/O for Elasticsearch CLI tools.
- org.elasticsearch.cli.terminal - package org.elasticsearch.cli.terminal
- org.elasticsearch.cli.terminal.internal - package org.elasticsearch.cli.terminal.internal
- out() - Method in record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Returns the value of the
outrecord component.
P
- print(Terminal.Verbosity, PrintWriter, CharSequence, boolean, boolean) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints message to the terminal at
verbositylevel. - print(Terminal.Verbosity, String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints message to the terminal's standard output at
verbositylevel, without a newline. - println(CharSequence) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal at
Terminal.Verbosity.NORMALverbosity level. - println(Object) - Method in class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
- println(String) - Method in class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
- println(Terminal.Verbosity, CharSequence) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prints a line to the terminal at
verbositylevel. - promptYesNo(String, boolean) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Prompt for a yes or no answer from the user.
R
- readLineToCharArray(Reader) - Static method in class org.elasticsearch.cli.terminal.Terminal
-
Read from the reader until we find a newline.
- readSecret(String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Reads password text from the terminal input.
- readText(String) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Reads clear text from the terminal input.
S
- setVerbosity(Terminal.Verbosity) - Method in class org.elasticsearch.cli.terminal.Terminal
-
Sets the verbosity of the terminal.
- SILENT - Enum constant in enum class org.elasticsearch.cli.terminal.Terminal.Verbosity
- SystemStreams(OutputStream, OutputStream) - Constructor for record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Creates an instance of a
SystemStreamsrecord class.
T
- Terminal - Class in org.elasticsearch.cli.terminal
-
A Terminal wraps access to reading input and writing output for a cli.
- Terminal(Reader, PrintWriter, PrintWriter) - Constructor for class org.elasticsearch.cli.terminal.Terminal
-
Constructs a terminal instance.
- Terminal(Terminal) - Constructor for class org.elasticsearch.cli.terminal.Terminal
-
Constructs a terminal instance from a delegate instance.
- Terminal.SystemStreams - Record Class in org.elasticsearch.cli.terminal
- Terminal.Verbosity - Enum Class in org.elasticsearch.cli.terminal
-
Defines the available verbosity levels of messages to be printed.
- TerminalPrintStream - Class in org.elasticsearch.cli.terminal.internal
-
A
PrintStreamthat writes lines to the currentTerminal. - TerminalPrintStream(Terminal, boolean) - Constructor for class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
- toString() - Method in record class org.elasticsearch.cli.terminal.Terminal.SystemStreams
-
Returns a string representation of this record class.
U
- useJsonOutput() - Static method in class org.elasticsearch.cli.terminal.internal.EcsJsonUtils
V
- valueOf(String) - Static method in enum class org.elasticsearch.cli.terminal.Terminal.Verbosity
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.elasticsearch.cli.terminal.Terminal.Verbosity
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERBOSE - Enum constant in enum class org.elasticsearch.cli.terminal.Terminal.Verbosity
W
- write(byte[], int, int) - Method in class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
- write(int) - Method in class org.elasticsearch.cli.terminal.internal.TerminalPrintStream
All Classes and Interfaces|All Packages