| | |
| | | |
| | | import static org.opends.quicksetup.util.Utils.*; |
| | | |
| | | import org.opends.server.admin.DefaultBehaviorException; |
| | | import org.opends.server.admin.PropertyException; |
| | | import org.opends.server.admin.ManagedObjectNotFoundException; |
| | | import org.opends.server.admin.client.ManagementContext; |
| | | import org.opends.server.admin.client.ldap.LDAPManagementContext; |
| | |
| | | ReplicationSynchronizationProviderCfgDefn.getInstance(); |
| | | sync = root.createSynchronizationProvider(provider, |
| | | "Multimaster Synchronization", |
| | | new ArrayList<DefaultBehaviorException>()); |
| | | new ArrayList<PropertyException>()); |
| | | sync.setJavaClass( |
| | | org.opends.server.replication.plugin.MultimasterReplication.class. |
| | | getName()); |
| | |
| | | usedReplicationServerIds.add(id); |
| | | replicationServer = sync.createReplicationServer( |
| | | ReplicationServerCfgDefn.getInstance(), |
| | | new ArrayList<DefaultBehaviorException>()); |
| | | new ArrayList<PropertyException>()); |
| | | replicationServer.setReplicationServerId(id); |
| | | replicationServer.setReplicationPort(replicationPort); |
| | | replicationServerCreated = true; |
| | |
| | | domainName = getDomainName(domainNames, domainId, dn); |
| | | domain = sync.createReplicationDomain( |
| | | ReplicationDomainCfgDefn.getInstance(), domainName, |
| | | new ArrayList<DefaultBehaviorException>()); |
| | | new ArrayList<PropertyException>()); |
| | | domain.setServerId(domainId); |
| | | domain.setBaseDN(DN.valueOf(dn)); |
| | | isCreated = true; |