public final class DsConfig
extends com.forgerock.opendj.cli.InteractiveTool
Modifier and Type | Method and Description |
---|---|
static void |
dsConfigEmbeddedOffline(com.forgerock.opendj.cli.ArgumentsBuilder args,
OutputStream outStream,
OutputStream errStream)
This method is used for running the dsconfig tool programmatically against an offline server.
|
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 tool for processing.
|
static com.forgerock.opendj.cli.ReturnCode |
main(String[] args,
InputStream inStream,
OutputStream outStream,
OutputStream errStream)
Provides the command-line arguments to the main tool for processing and returns the exit code as an
integer.
|
static com.forgerock.opendj.cli.ReturnCode |
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)
Parses the provided command-line arguments and makes the appropriate changes to the Directory Server
configuration.
|
getErrStream, isFullyInteractive
askConfirmation, askPort, close, confirmAction, enableConsoleLoggingIfVerbose, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flush, flushLogStream, getErrorStream, getInputStream, getOutputStream, 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 com.forgerock.opendj.cli.ReturnCode 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 com.forgerock.opendj.cli.ReturnCode 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 static void dsConfigEmbeddedOffline(com.forgerock.opendj.cli.ArgumentsBuilder args, OutputStream outStream, OutputStream errStream) throws com.forgerock.opendj.cli.ClientException
The --offline and --noPropertyFile arguments are automatically added to
the tool arguments.
No modification will be performed to the running JVM JDK logging configuration.
args
- The set of command-line arguments provided to this programoutStream
- The output stream for standard outputerrStream
- The output stream for standard errorcom.forgerock.opendj.cli.ClientException
- If an error occurs during the tool execution or if the tool has returned a error ReturnCode
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 isScriptFriendly()
com.forgerock.opendj.cli.Tool
false
.isScriptFriendly
in class com.forgerock.opendj.cli.Tool
true
if the user has requested script-friendly 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
run
in class com.forgerock.opendj.cli.Tool
args
- The command-line arguments provided to this program.com.forgerock.opendj.cli.ClientException
- If an error occurs during the tool executionCopyright 2010-2022 ForgeRock AS.