public class ReplicationCliMain
extends com.forgerock.opendj.cli.ConsoleApplication
Modifier and Type | Field and Description |
---|---|
static org.forgerock.opendj.ldap.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 TopologyCache |
createTopologyCache(HostPort hostPort,
String password)
Returns a
TopologyCache corresponding to the replication topology of the provided server. |
void |
initializeAllSuffix(org.forgerock.opendj.ldap.Dn baseDN,
ConnectionWrapper conn,
boolean displayProgress)
Initializes all the replicas in the topology with the contents of a given replica.
|
boolean |
isInteractive() |
boolean |
isMenuDrivenMode() |
boolean |
isQuiet() |
boolean |
isScriptFriendly() |
boolean |
isVerbose() |
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, enableConsoleLoggingIfVerbose, errPrint, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flushLogStream, getErrorStream, getErrStream, getInputStream, getOutputStream, logVerboseMessage, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printlnSurroundedByBlankLines, printNoWrap, printProgressBar, printVerboseMessage, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput, report, run
public static final org.forgerock.opendj.ldap.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 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(org.forgerock.opendj.ldap.Dn 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 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
public static TopologyCache createTopologyCache(HostPort hostPort, String password) throws org.forgerock.opendj.ldap.LdapException
TopologyCache
corresponding to the replication topology of the provided server.
The global administration UID must be admin.
hostPort
- Server in the replication topology host name and administration port.password
- Topology global administrator password.TopologyCache
corresponding to the replication topology of the provided server.org.forgerock.opendj.ldap.LdapException
- If an error occurs while trying to discover replication topology.Copyright © 2010–2017 ForgeRock AS. All rights reserved.