public class StatusCli extends com.forgerock.opendj.cli.ConsoleApplication
Modifier and Type | Field and Description |
---|---|
static String |
LOG_FILE_PREFIX
Prefix for log files.
|
static String |
LOG_FILE_SUFFIX
Suffix for log files.
|
Constructor and Description |
---|
StatusCli(PrintStream out,
PrintStream err,
InputStream in)
Constructor for the status cli object.
|
Modifier and Type | Method and Description |
---|---|
int |
execute(String[] args)
Parses the provided command-line arguments and uses that information to run
the status CLI.
|
boolean |
isAdvancedMode() |
boolean |
isInteractive() |
boolean |
isMenuDrivenMode() |
boolean |
isQuiet() |
boolean |
isScriptFriendly() |
boolean |
isVerbose() |
static void |
main(String[] args)
The main method for the status CLI tool.
|
static int |
mainCLI(String[] args)
Parses the provided command-line arguments and uses that information to
run the status tool.
|
static int |
mainCLI(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream,
InputStream inStream)
Parses the provided command-line arguments and uses that information to run
the status tool.
|
askConfirmation, askPort, confirmAction, errPrint, errPrintln, errPrintln, errPrintln, errPrintVerboseMessage, getErrorStream, getErrStream, getInputStream, getOutputStream, pressReturnToContinue, print, println, println, println, println, printProgressBar, printVerboseMessage, readInput, readInput, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput
public static final String LOG_FILE_PREFIX
public static final String LOG_FILE_SUFFIX
public StatusCli(PrintStream out, PrintStream err, InputStream in)
out
- The print stream to use for standard output.err
- The print stream to use for standard error.in
- The input stream to use for standard input.public static void main(String[] args)
args
- The command-line arguments provided to this program.public static int mainCLI(String[] args)
args
- the command-line arguments provided to this program.public static int mainCLI(String[] args, boolean initializeServer, OutputStream outStream, OutputStream errStream, InputStream inStream)
args
- The command-line arguments provided to this program.initializeServer
- Indicates whether to initialize the server.outStream
- The output stream to use for standard output, or null
if standard output is not needed.errStream
- The output stream to use for standard error, or null
if standard error is not needed.inStream
- The input stream to use for standard input.public int execute(String[] args)
args
- The command-line arguments provided to this program.public boolean isAdvancedMode()
isAdvancedMode
in class com.forgerock.opendj.cli.ConsoleApplication
public boolean isInteractive()
isInteractive
in class com.forgerock.opendj.cli.ConsoleApplication
public boolean isMenuDrivenMode()
isMenuDrivenMode
in class com.forgerock.opendj.cli.ConsoleApplication
public boolean isQuiet()
isQuiet
in class com.forgerock.opendj.cli.ConsoleApplication
public boolean isScriptFriendly()
isScriptFriendly
in class com.forgerock.opendj.cli.ConsoleApplication
public boolean isVerbose()
isVerbose
in class com.forgerock.opendj.cli.ConsoleApplication
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.