| File was renamed from opendj-sdk/opends/src/server/org/opends/server/replication/service/InitializeTask.java |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.service; |
| | | package org.opends.server.replication.plugin; |
| | | import org.opends.server.tasks.TaskUtils; |
| | | |
| | | import org.opends.server.types.ResultCode; |
| | |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | |
| | |
| | | |
| | | private String domainString = null; |
| | | private short source; |
| | | private ReplicationDomain domain = null; |
| | | private LDAPReplicationDomain domain = null; |
| | | private TaskState initState; |
| | | |
| | | // The total number of entries expected to be processed when this import |
| | |
| | | |
| | | try |
| | | { |
| | | domain = ReplicationDomain.retrievesReplicationDomain(domainString); |
| | | DN dn = DN.decode(domainString); |
| | | // We can assume that this is an LDAP replication domain |
| | | domain = LDAPReplicationDomain.retrievesReplicationDomain(dn); |
| | | } |
| | | catch(DirectoryException e) |
| | | { |