| | |
| | | private SubCommand preExternalInitializationSubCmd; |
| | | private SubCommand statusReplicationSubCmd; |
| | | |
| | | int defaultAdminPort = 4444; |
| | | |
| | | /** |
| | | * No-prompt argument. |
| | | */ |
| | |
| | | throws ArgumentException |
| | | { |
| | | initializeGlobalArguments(outStream); |
| | | try |
| | | { |
| | | defaultAdminPort = secureArgsList.getAdminPortFromConfig(); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | // Ignore |
| | | } |
| | | createEnableReplicationSubCommand(); |
| | | createDisableReplicationSubCommand(); |
| | | createInitializeReplicationSubCommand(); |
| | |
| | | null, INFO_DESCRIPTION_ENABLE_REPLICATION_HOST1.get()); |
| | | |
| | | port1Arg = new IntegerArgument("port1", OPTION_SHORT_PORT, "port1", |
| | | false, false, true, INFO_PORT_PLACEHOLDER.get(), 4444, null, |
| | | false, false, true, INFO_PORT_PLACEHOLDER.get(), |
| | | defaultAdminPort, null, |
| | | INFO_DESCRIPTION_ENABLE_REPLICATION_SERVER_PORT1.get()); |
| | | |
| | | bindDn1Arg = new StringArgument("bindDN1", OPTION_SHORT_BINDDN, |
| | |
| | | null, INFO_DESCRIPTION_ENABLE_REPLICATION_HOST2.get()); |
| | | |
| | | port2Arg = new IntegerArgument("port2", null, "port2", |
| | | false, false, true, INFO_PORT_PLACEHOLDER.get(), 4444, null, |
| | | false, false, true, INFO_PORT_PLACEHOLDER.get(), defaultAdminPort, null, |
| | | INFO_DESCRIPTION_ENABLE_REPLICATION_SERVER_PORT2.get()); |
| | | |
| | | bindDn2Arg = new StringArgument("bindDN2", null, |
| | |
| | | INFO_DESCRIPTION_INITIALIZE_REPLICATION_HOST_SOURCE.get()); |
| | | |
| | | portSourceArg = new IntegerArgument("portSource", OPTION_SHORT_PORT, |
| | | "portSource", false, false, true, INFO_PORT_PLACEHOLDER.get(), 4444, |
| | | null, |
| | | "portSource", false, false, true, INFO_PORT_PLACEHOLDER.get(), |
| | | defaultAdminPort, null, |
| | | INFO_DESCRIPTION_INITIALIZE_REPLICATION_SERVER_PORT_SOURCE.get()); |
| | | |
| | | hostNameDestinationArg = new StringArgument("hostDestination", 'O', |
| | |
| | | |
| | | portDestinationArg = new IntegerArgument("portDestination", null, |
| | | "portDestination", false, false, true, INFO_PORT_PLACEHOLDER.get(), |
| | | 4444, |
| | | defaultAdminPort, |
| | | null, |
| | | INFO_DESCRIPTION_INITIALIZE_REPLICATION_SERVER_PORT_DESTINATION.get()); |
| | | |