| | |
| | | |
| | | // Unsupported message type: should not happen |
| | | throw new IllegalArgumentException("Unexpected PDU type: " + |
| | | msg.getClass().getName() + " :\n" + msg.toString()); |
| | | msg.getClass().getName() + " :\n" + msg); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugInfo("RB for dn " + baseDn |
| | | + " and with server id " + Integer.toString(serverId) |
| | | + " computed " + Integer.toString(nChanges) + " changes late."); |
| | | TRACER.debugInfo("RB for dn " + baseDn + " and with server id " |
| | | + serverId + " computed " + nChanges + " changes late."); |
| | | } |
| | | |
| | | /* |
| | |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugInfo("In RB for " + baseDn + "\nRB HANDSHAKE SENT:\n" |
| | | + serverStartMsg.toString() + "\nAND RECEIVED:\n" |
| | | + msg.toString()); |
| | | + serverStartMsg + "\nAND RECEIVED:\n" + msg); |
| | | } |
| | | |
| | | // Wrap received message in a server info object |
| | |
| | | |
| | | // Sanity check |
| | | String repDn = replServerInfo.getBaseDn(); |
| | | if (!(this.baseDn.equals(repDn))) |
| | | if (!this.baseDn.equals(repDn)) |
| | | { |
| | | errorMessage = ERR_DS_DN_DOES_NOT_MATCH.get(repDn, |
| | | this.baseDn); |
| | |
| | | */ |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugInfo("In RB for " + baseDn |
| | | + "\nRB HANDSHAKE SENT:\n" + startECLSessionMsg.toString()); |
| | | TRACER.debugInfo("In RB for " + baseDn + "\nRB HANDSHAKE SENT:\n" |
| | | + startECLSessionMsg); |
| | | } |
| | | |
| | | // Alright set the timeout to the desired value |
| | |
| | | |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugInfo("In RB for " + baseDn |
| | | + "\nRB HANDSHAKE SENT:\n" + startSessionMsg.toString() |
| | | + "\nAND RECEIVED:\n" + topologyMsg.toString()); |
| | | TRACER.debugInfo("In RB for " + baseDn + "\nRB HANDSHAKE SENT:\n" |
| | | + startSessionMsg + "\nAND RECEIVED:\n" + topologyMsg); |
| | | } |
| | | |
| | | // Alright set the timeout to the desired value |
| | |
| | | } |
| | | } |
| | | } |
| | | if ((!credit) && (currentWindowSemaphore.availablePermits() == 0)) |
| | | if (!credit && currentWindowSemaphore.availablePermits() == 0) |
| | | { |
| | | synchronized (connectPhaseLock) |
| | | { |
| | |
| | | // These parameters needs to be renegotiated with the ReplicationServer |
| | | // so if they have changed, that requires restarting the session with |
| | | // the ReplicationServer. |
| | | Boolean needToRestartSession = false; |
| | | |
| | | // A new session is necessary only when information regarding |
| | | // the connection is modified |
| | | if (this.replicationServerUrls == null |
| | | boolean needToRestartSession = |
| | | this.replicationServerUrls == null |
| | | || replicationServers.size() != this.replicationServerUrls.size() |
| | | || !replicationServers.containsAll(this.replicationServerUrls) |
| | | || window != this.maxRcvWindow |
| | | || heartbeatInterval != this.heartbeatInterval |
| | | || groupId != this.groupId) |
| | | { |
| | | needToRestartSession = true; |
| | | } |
| | | || groupId != this.groupId; |
| | | |
| | | this.replicationServerUrls = replicationServers; |
| | | this.rcvWindow = window; |