Class SupportExtract
- java.lang.Object
-
- com.forgerock.opendj.cli.Tool
-
- org.opends.server.tools.supportextract.SupportExtract
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class SupportExtract extends com.forgerock.opendj.cli.ToolA tool that generates an archive with various server information, the archive can be sent to support for troubleshooting.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderrPrintln()Displays a blank line to the error stream.voiderrPrintln(LocalizableMessage msg)Displays a message to the error stream.voiderrPrintln(LocalizableMessage msg, int indent)Displays a message to the error stream indented by the specified number of columns.voiderrPrintlnSurroundedByBlankLines(LocalizableMessage errorMessage)Displays a blank line, the provided error message and another blank line on the error stream returned byTool.getErrStream().voiderrPrintVerboseMessage(LocalizableMessage msg)Displays a message to the error stream if verbose mode is enabled.protected voidlogVerboseMessage(String logMessage)Logs the provided message on standard output.static voidmain(String[] args)Runs theSupportExtracttool with the provided command line arguments.voidprint(LocalizableMessage msg)Displays a message to the output stream.voidprintln()Displays a blank line to the output stream.voidprintln(LocalizableMessage msg)Displays a message to the output stream.voidprintln(LocalizableMessage msg, int indent)Displays a message to the output stream indented by the specified number of columns.voidprintlnSurroundedByBlankLines(LocalizableMessage message)Displays a blank line, the provided message and another blank line.com.forgerock.opendj.cli.ReturnCoderun(String... args)Run thisTooltool with the provided arguments.-
Methods inherited from class com.forgerock.opendj.cli.Tool
askPort, close, confirmAction, enableConsoleLoggingIfVerbose, flush, flushLogStream, getErrorStream, getErrStream, getInputStream, getOutputStream, isFullyInteractive, isQuiet, isScriptFriendly, isVerbose, mayPrompt, parseArguments, pressReturnToContinue, printlnNoWrap, printNoWrap, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readValidatedInput, readValidatedInputOrThrow, report
-
-
-
-
Method Detail
-
main
public static void main(String[] args)
Runs theSupportExtracttool with the provided command line arguments.- Parameters:
args- The command line arguments.
-
run
public com.forgerock.opendj.cli.ReturnCode run(String... args) throws com.forgerock.opendj.cli.ClientException
Description copied from class:com.forgerock.opendj.cli.ToolRun thisTooltool with the provided arguments. Output and errors will be written on the provided streams.This method can be used to run the tool programmatically.
- Overrides:
runin classcom.forgerock.opendj.cli.Tool- Parameters:
args- Arguments set to pass to the tool.- Returns:
- The tool
ReturnCode. - Throws:
com.forgerock.opendj.cli.ClientException- If an error occurs while running the tool.
-
errPrintln
public void errPrintln()
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a blank line to the error stream.- Overrides:
errPrintlnin classcom.forgerock.opendj.cli.Tool
-
errPrintln
public void errPrintln(LocalizableMessage msg)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the error stream.- Overrides:
errPrintlnin classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The message.
-
errPrintln
public void errPrintln(LocalizableMessage msg, int indent)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the error stream indented by the specified number of columns.- Overrides:
errPrintlnin classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The message.indent- The number of columns to indent.
-
errPrintVerboseMessage
public void errPrintVerboseMessage(LocalizableMessage msg)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the error stream if verbose mode is enabled.- Overrides:
errPrintVerboseMessagein classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The verbose message.
-
print
public void print(LocalizableMessage msg)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the output stream.- Overrides:
printin classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The message.
-
println
public void println()
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a blank line to the output stream.- Overrides:
printlnin classcom.forgerock.opendj.cli.Tool
-
println
public void println(LocalizableMessage msg)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the output stream.- Overrides:
printlnin classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The message.
-
println
public void println(LocalizableMessage msg, int indent)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a message to the output stream indented by the specified number of columns.- Overrides:
printlnin classcom.forgerock.opendj.cli.Tool- Parameters:
msg- The message.indent- The number of columns to indent.
-
printlnSurroundedByBlankLines
public void printlnSurroundedByBlankLines(LocalizableMessage message)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a blank line, the provided message and another blank line.- Overrides:
printlnSurroundedByBlankLinesin classcom.forgerock.opendj.cli.Tool- Parameters:
message- The message to print between two blank lines
-
errPrintlnSurroundedByBlankLines
public void errPrintlnSurroundedByBlankLines(LocalizableMessage errorMessage)
Description copied from class:com.forgerock.opendj.cli.ToolDisplays a blank line, the provided error message and another blank line on the error stream returned byTool.getErrStream().- Overrides:
errPrintlnSurroundedByBlankLinesin classcom.forgerock.opendj.cli.Tool- Parameters:
errorMessage- The error message to print between two blank lines
-
logVerboseMessage
protected void logVerboseMessage(String logMessage)
Description copied from class:com.forgerock.opendj.cli.ToolLogs the provided message on standard output.- Overrides:
logVerboseMessagein classcom.forgerock.opendj.cli.Tool- Parameters:
logMessage- The message to logMessage
-
-