| File was renamed from opends/src/server/org/opends/server/synchronization/SynchronizationDomain.java |
| | |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.synchronization; |
| | | package org.opends.server.synchronization.plugin; |
| | | |
| | | import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString; |
| | | import static org.opends.server.util.TimeThread.getTime; |
| | | import static org.opends.server.synchronization.SynchMessages.*; |
| | | import static org.opends.server.synchronization.common.LogMessages.*; |
| | | import static org.opends.server.synchronization.plugin.Historical.*; |
| | | import static org.opends.server.synchronization.protocol.OperationContext.*; |
| | | import static org.opends.server.loggers.Error.*; |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.synchronization.OperationContext.SYNCHROCONTEXT; |
| | | import static org.opends.server.synchronization.Historical.*; |
| | | |
| | | import java.net.SocketTimeoutException; |
| | | import java.util.ArrayList; |
| | |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPException; |
| | | import org.opends.server.synchronization.common.ChangeNumber; |
| | | import org.opends.server.synchronization.common.ChangeNumberGenerator; |
| | | import org.opends.server.synchronization.common.ServerState; |
| | | import org.opends.server.synchronization.protocol.AckMessage; |
| | | import org.opends.server.synchronization.protocol.AddContext; |
| | | import org.opends.server.synchronization.protocol.DeleteContext; |
| | | import org.opends.server.synchronization.protocol.ModifyContext; |
| | | import org.opends.server.synchronization.protocol.ModifyDNMsg; |
| | | import org.opends.server.synchronization.protocol.ModifyDnContext; |
| | | import org.opends.server.synchronization.protocol.OperationContext; |
| | | import org.opends.server.synchronization.protocol.SynchronizationMessage; |
| | | import org.opends.server.synchronization.protocol.UpdateMessage; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | |
| | | private int numSentUpdates = 0; |
| | | private int numProcessedUpdates = 0; |
| | | private int debugCount = 0; |
| | | private ServerState state; |
| | | private PersistentServerState state; |
| | | private int numReplayedPostOpCalled = 0; |
| | | |
| | | private int maxReceiveQueue = 0; |
| | |
| | | baseDN = baseDn.activeValue(); |
| | | configAttributes.add(baseDn); |
| | | |
| | | state = new ServerState(baseDN); |
| | | state = new PersistentServerState(baseDN); |
| | | state.loadState(); |
| | | |
| | | /* |
| | |
| | | return null; |
| | | } |
| | | |
| | | update = msg.processReceive(this); |
| | | if (msg instanceof AckMessage) |
| | | { |
| | | AckMessage ack = (AckMessage) msg; |
| | | receiveAck(ack); |
| | | } |
| | | else if (msg instanceof UpdateMessage) |
| | | { |
| | | update = (UpdateMessage) msg; |
| | | receiveUpdate(update); |
| | | } |
| | | } catch (SocketTimeoutException e) |
| | | { |
| | | // just retry |