public final class DsConfig
extends com.forgerock.opendj.cli.ConsoleApplication
Modifier and Type | Method and Description |
---|---|
boolean |
isInteractive()
Indicates whether the user has requested interactive behavior.
|
boolean |
isMenuDrivenMode()
Indicates whether this console application is running in its menu-driven mode.
|
boolean |
isPromptingForTrust()
Indicates whether the user has requested that Trust Manager prompts are allowed for SSL.
|
boolean |
isQuiet()
Indicates whether the user has requested quiet output.
|
boolean |
isScriptFriendly()
Indicates whether the user has requested script-friendly output.
|
boolean |
isVerbose()
Indicates whether the user has requested verbose output.
|
static void |
main(String[] args)
Provides the command-line arguments to the main application for processing.
|
static int |
main(String[] args,
InputStream inStream,
OutputStream outStream,
OutputStream errStream)
Provides the command-line arguments to the main application for processing and returns the exit code as an
integer.
|
static int |
main(String[] args,
OutputStream outStream,
OutputStream errStream)
Provides the command-line arguments to the main application for processing and returns the exit code as an
integer.
|
com.forgerock.opendj.cli.ReturnCode |
run(String... args)
Parses the provided command-line arguments and makes the appropriate changes to the Directory Server
configuration.
|
askConfirmation, askPort, confirmAction, enableConsoleLoggingIfVerbose, errPrint, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flushLogStream, getErrorStream, getErrStream, getInputStream, getOutputStream, logVerboseMessage, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printlnSurroundedByBlankLines, printNoWrap, printProgressBar, printVerboseMessage, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readPassword, readPort, 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 static int main(String[] args, InputStream inStream, OutputStream outStream, OutputStream errStream)
args
- The set of command-line arguments provided to this program.inStream
- The input stream for standard input.outStream
- The output stream for standard output.errStream
- The output stream for standard error.public boolean isInteractive()
com.forgerock.opendj.cli.ConsoleApplication
The default implementation returns false
.
isInteractive
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested interactive behavior.public boolean isMenuDrivenMode()
com.forgerock.opendj.cli.ConsoleApplication
isMenuDrivenMode
in class com.forgerock.opendj.cli.ConsoleApplication
true
if this console application is running in its menu-driven mode.public boolean isQuiet()
com.forgerock.opendj.cli.ConsoleApplication
false
.isQuiet
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested quiet output.public boolean isPromptingForTrust()
com.forgerock.opendj.cli.ConsoleApplication
The default implementation returns true
.
isPromptingForTrust
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested prompting.public boolean isScriptFriendly()
com.forgerock.opendj.cli.ConsoleApplication
false
.isScriptFriendly
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested script-friendly output.public boolean isVerbose()
com.forgerock.opendj.cli.ConsoleApplication
false
.isVerbose
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested verbose output.public com.forgerock.opendj.cli.ReturnCode run(String... args) throws com.forgerock.opendj.cli.ClientException
run
in class com.forgerock.opendj.cli.ConsoleApplication
args
- The command-line arguments provided to this program.com.forgerock.opendj.cli.ClientException
- If an error occurs during the tool executionCopyright 2010-2020 ForgeRock AS.