Class StartDisasterRecoverySubCommand
- java.lang.Object
-
- org.forgerock.opendj.tools.dsrepl.StartDisasterRecoverySubCommand
-
public class StartDisasterRecoverySubCommand extends Object
Adsrepl sub command
that starts a disaster recovery.The goal of a disaster recovery is to reset all the data in the topology to a known, clean state. It consists in re-initializing all the replicas in the topology with the same data. This sub-command prepares the recovery but does not include the re-initialization of the data.
The sub-command sends a task to the provided server to reset the generation ID to -1. The reset message is propagated automatically to all the servers of the topology.
This has the effect to:
- wipe out changelog data on all replication servers
- suspend the replication because all replication servers of the topology will have a generation ID of -1, hence all directory servers of the topology will be put into a BAD_GEN_ID state.
-
-
Constructor Summary
Constructors Constructor Description StartDisasterRecoverySubCommand​(com.forgerock.opendj.cli.LdapClientProvider ldapClientProvider, Set<Dn> baseDns, com.forgerock.opendj.cli.Tool tool)
Constructor for this sub-command.
-
-
-
Constructor Detail
-
StartDisasterRecoverySubCommand
public StartDisasterRecoverySubCommand​(com.forgerock.opendj.cli.LdapClientProvider ldapClientProvider, Set<Dn> baseDns, com.forgerock.opendj.cli.Tool tool)
Constructor for this sub-command.- Parameters:
ldapClientProvider
- ldap client provider for the local server.baseDns
- base Dns to process for resetting the generation ID.tool
- this tool used to print messages
-
-