ldapAttrList.add(ocAttr);
attributes.put(ocType, ldapAttrList);
try
{
AddChangeRecordEntry changeRecord =
new AddChangeRecordEntry(DN.decode(BASE_DN),
attributes);
ldifWriter.writeChangeRecord(changeRecord);
}
catch (Exception e) {}
for (ReplicationServerDomain exportContainer : exportContainers)
{
if (exportConfig != null && exportConfig.isCancelled())
{
break;
}
attributes.clear();
ldapAttrList.clear();
ldapAttrList.add(ocAttr);
attributes.put(ocType, ldapAttrList);
TRACER.debugInfo("State=" +
exportContainer.getDbServerState().toString());
Attribute stateAttr = Attributes.create("state", exportContainer
.getDbServerState().toString());
ldapAttrList.clear();
ldapAttrList.add(stateAttr);
attributes.put(stateAttr.getAttributeType(), ldapAttrList);
Attribute genidAttr = Attributes.create("generation-id", String
.valueOf(exportContainer.getGenerationId())
+ exportContainer.getBaseDn());
ldapAttrList.clear();
ldapAttrList.add(genidAttr);
attributes.put(genidAttr.getAttributeType(), ldapAttrList);
try
{
AddChangeRecordEntry changeRecord =
new AddChangeRecordEntry(DN.decode(
exportContainer.getBaseDn() + "," + BASE_DN),
attributes);
ldifWriter.writeChangeRecord(changeRecord);
}
catch (Exception e)