backend2 = initializeTestBackend(false,
TEST_ROOT_DN_STRING2, TEST_BACKEND_ID2);
baseDn2 = DN.decode(TEST_ROOT_DN_STRING2);
SortedSet<String> replServers = new TreeSet<String>();
replServers.add("localhost:"+replicationServerPort);
DomainFakeCfg domainConf =
new DomainFakeCfg(baseDn2, 1702, replServers);
// on o=test2,sid=1702 include attrs set to : 'sn'
SortedSet<AttributeType> eclInclude = new TreeSet<AttributeType>();
eclInclude.add(DirectoryServer.getAttributeType("sn"));
eclInclude.add(DirectoryServer.getAttributeType("roomnumber"));
ExternalChangelogDomainFakeCfg eclCfg =
new ExternalChangelogDomainFakeCfg(true, eclInclude);
domainConf.setExternalChangelogDomain(eclCfg);
// Set a Changetime heartbeat interval low enough (less than default
// value that is 1000 ms) for the test to be sure to consider all changes
// as eligible.
domainConf.setChangetimeHeartbeatInterval(10);
domain2 = MultimasterReplication.createNewDomain(domainConf);
domain2.start();
backend3 = initializeTestBackend(false,
TEST_ROOT_DN_STRING3, TEST_BACKEND_ID3);
baseDn3 = DN.decode(TEST_ROOT_DN_STRING3);
domainConf =
new DomainFakeCfg(baseDn3, 1703, replServers);
// on o=test3,sid=1703 include attrs set to : 'objectclass'
eclInclude = new TreeSet<AttributeType>();
eclInclude.add(DirectoryServer.getAttributeType("objectclass"));
eclCfg =
new ExternalChangelogDomainFakeCfg(true, eclInclude);
domainConf.setExternalChangelogDomain(eclCfg);
// Set a Changetime heartbeat interval low enough (less than default
// value that is 1000 ms) for the test to be sure to consider all changes
// as eligible.
domainConf.setChangetimeHeartbeatInterval(10);
domain3 = MultimasterReplication.createNewDomain(domainConf);
domain3.start();
// on o=test2,sid=1704 include attrs set to : 'cn'
domainConf =
new DomainFakeCfg(baseDn2, 1704, replServers);
eclInclude = new TreeSet<AttributeType>();
eclInclude.add(DirectoryServer.getAttributeType("cn"));
eclCfg =
new ExternalChangelogDomainFakeCfg(true, eclInclude);
domainConf.setExternalChangelogDomain(eclCfg);
// Set a Changetime heartbeat interval low enough (less than default
// value that is 1000 ms) for the test to be sure to consider all changes
// as eligible.
domainConf.setChangetimeHeartbeatInterval(10);
domain21 = MultimasterReplication.createNewDomain(domainConf);
domain21.start();
sleep(1000);