public final class UpgradeCli extends com.forgerock.opendj.cli.InteractiveTool implements CallbackHandler
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks) |
boolean |
isQuiet()
Indicates whether the user has requested quiet output.
|
boolean |
isVerbose()
Indicates whether the user has requested verbose output.
|
static void |
main(String[] args)
Provides the command-line arguments to the main tool for processing.
|
static int |
main(String[] args,
OutputStream outStream,
OutputStream errStream)
Provides the command-line arguments to the main tool for processing and returns the exit code as an
integer.
|
com.forgerock.opendj.cli.ReturnCode |
run(String... args)
Run this
Tool tool with the provided arguments. |
getErrStream, isFullyInteractive
askConfirmation, askPort, confirmAction, enableConsoleLoggingIfVerbose, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flushLogStream, getErrorStream, getInputStream, getOutputStream, isScriptFriendly, logVerboseMessage, mayPrompt, parseArguments, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printlnSurroundedByBlankLines, printNoWrap, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readPassword, readValidatedInput, readValidatedInput, report
public static void main(String[] args)
args
- The set of command-line arguments provided to this program.public static int main(String[] args, OutputStream outStream, OutputStream errStream)
args
- The set of command-line arguments provided to this program.outStream
- The output stream for standard output.errStream
- The output stream for standard error.public boolean isQuiet()
com.forgerock.opendj.cli.Tool
false
.isQuiet
in class com.forgerock.opendj.cli.Tool
true
if the user has requested quiet output.public boolean isVerbose()
com.forgerock.opendj.cli.Tool
false
.isVerbose
in class com.forgerock.opendj.cli.Tool
true
if the user has requested verbose output.public com.forgerock.opendj.cli.ReturnCode run(String... args) throws com.forgerock.opendj.cli.ClientException
com.forgerock.opendj.cli.Tool
Tool
tool with the provided arguments.
Output and errors will be written on the provided streams.
This method can be used to run the tool programmatically.
run
in class com.forgerock.opendj.cli.Tool
args
- Arguments set to pass to the tool.ReturnCode
.com.forgerock.opendj.cli.ClientException
- If an error occurs while running the tool.public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
Copyright 2010-2018 ForgeRock AS.