public class ReplicationCliMain extends com.forgerock.opendj.cli.ConsoleApplication
Constructor and Description |
---|
ReplicationCliMain(PrintStream out,
PrintStream err)
Constructor for the ReplicationCliMain object.
|
Modifier and Type | Method and Description |
---|---|
void |
initializeAllSuffix(String baseDN,
ConnectionWrapper conn,
boolean displayProgress)
Initializes all the replicas in the topology with the contents of a
given replica.
|
boolean |
isAdvancedMode()
Indicates whether the user has requested advanced mode.
|
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 |
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)
The main method for the replication tool.
|
static int |
mainCLI(String[] args)
Parses the provided command-line arguments and uses that information to
run the replication tool.
|
static int |
mainCLI(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Parses the provided command-line arguments and uses that information to
run the replication 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 ReplicationCliMain(PrintStream out, PrintStream err)
out
- the print stream to use for standard output.err
- the print stream to use for standard error.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)
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.public void initializeAllSuffix(String baseDN, ConnectionWrapper conn, boolean displayProgress) throws ReplicationCliException
conn
- the connection to the server where the source replica of the
initialization is.baseDN
- the dn of the suffix.displayProgress
- whether we want to display progress or not.ReplicationCliException
- if an unexpected error occurs.public boolean isAdvancedMode()
com.forgerock.opendj.cli.ConsoleApplication
isAdvancedMode
in class com.forgerock.opendj.cli.ConsoleApplication
true
if the user has requested advanced mode.public boolean isInteractive()
com.forgerock.opendj.cli.ConsoleApplication
true
.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 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.Copyright 2010-2017 ForgeRock AS.