| File was renamed from opends/src/server/org/opends/server/synchronization/MultimasterSynchronization.java |
| | |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.synchronization; |
| | | package org.opends.server.synchronization.plugin; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | |
| | | import org.opends.server.api.ConfigChangeListener; |
| | | import org.opends.server.api.ConfigDeleteListener; |
| | | import org.opends.server.api.SynchronizationProvider; |
| | | import org.opends.server.changelog.Changelog; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.synchronization.changelog.Changelog; |
| | | import org.opends.server.synchronization.common.LogMessages; |
| | | import org.opends.server.synchronization.common.ServerState; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.SynchronizationProviderResult; |
| | | |
| | | import static org.opends.server.synchronization.SynchMessages.*; |
| | | import static org.opends.server.synchronization.common.LogMessages.*; |
| | | |
| | | /** |
| | | * This class is used to load the Synchronization code inside the JVM |
| | |
| | | public void initializeSynchronizationProvider(ConfigEntry configEntry) |
| | | throws ConfigException |
| | | { |
| | | SynchMessages.registerMessages(); |
| | | LogMessages.registerMessages(); |
| | | |
| | | configEntry.registerAddListener(this); |
| | | configEntry.registerDeleteListener(this); |
| | |
| | | } |
| | | } while (domain == null); |
| | | |
| | | /* |
| | | * Don't apply synchronization to the special entry where the ServerState |
| | | * is stored. |
| | | */ |
| | | if ((domain!= null) && (domain.getServerStateDN().equals(dn))) |
| | | return null; |
| | | |