public final class CliScript extends Object implements OnlineCommand
Apply a list of CLI operations (a CLI script), provided as a String. If you want to read the script
from a file or a classpath resource, use the CliFile command.
The connect operations in the script are handled specially: bare connect operations without
arguments are simply ignored, as we are already connected, and connect host:port operations (with an argument
that specifies the host and port to connect to) are considered a failure. The script is scanned for the forbidden
connect operations before is it executed, so if this error happens, no operation from the script
has been performed yet.
NOOPpublic CliScript(String script)
script.script - the text of the CLI scriptpublic void apply(OnlineCommandContext ctx) throws Exception
apply in interface OnlineCommandExceptionpublic String toString()
toString in interface OnlineCommandtoString in class ObjectCopyright © 2024. All rights reserved.