public final class ReplicationCliMain
extends com.forgerock.opendj.cli.InteractiveTool
Modifier and Type | Field and Description |
---|---|
static Dn |
SCHEMA_DN
DN of the schema object.
|
Constructor and Description |
---|
ReplicationCliMain(PrintStream out,
PrintStream err)
Constructor for the ReplicationCliMain object.
|
Modifier and Type | Method and Description |
---|---|
static Set<SuffixDescriptor> |
getTopologySuffixes(ReplicationContext replContext,
HostPort hostPort,
String password)
Returns a set of suffixes corresponding to the replication topology of the provided 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)
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 canInitializeServer,
OutputStream outStream,
OutputStream errStream)
Parses the provided command-line arguments and uses that information to run the replication tool.
|
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, run
public static final Dn SCHEMA_DN
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 canInitializeServer, OutputStream outStream, OutputStream errStream)
args
- The command-line arguments provided to this program.canInitializeServer
- true
if the server can be initialized, false
otherwise (basically, because this is
executed in the context of a unit-test).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 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 static Set<SuffixDescriptor> getTopologySuffixes(ReplicationContext replContext, HostPort hostPort, String password) throws LdapException
The global administration UID must be admin.
replContext
- The replication context.hostPort
- Server in the replication topology host name and administration port.password
- Topology global administrator password.LdapException
- If an error occurs while trying to discover replication topology.Copyright 2010-2022 ForgeRock AS.