| | |
| | | import static org.opends.server.loggers.ErrorLogger.logError; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | | import static org.opends.server.loggers.debug.DebugLogger.getTracer; |
| | | import static org.opends.server.replication.protocol.ProtocolVersion.*; |
| | | import static org.opends.server.replication.server.ReplicationServer.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | { |
| | | serverStartMsg = new ServerStartMsg(serverId, url, baseDn, |
| | | maxRcvWindow, heartbeatInterval, state, |
| | | ProtocolVersion.getCurrentVersion(), |
| | | this.getGenerationID(), isSslEncryption, groupId); |
| | | } |
| | | else |
| | | { |
| | | serverStartMsg = new ServerStartECLMsg(url, 0, 0, 0, 0, |
| | | maxRcvWindow, heartbeatInterval, state, |
| | | ProtocolVersion.getCurrentVersion(), |
| | | this.getGenerationID(), isSslEncryption, groupId); |
| | | } |
| | | localSession.publish(serverStartMsg); |
| | |
| | | * replication server will use the same one (or an older one if it is an |
| | | * old replication server). |
| | | */ |
| | | final short localProtocolVersion = ProtocolVersion |
| | | .minWithCurrent(replServerInfo.getProtocolVersion()); |
| | | final short localProtocolVersion = getCompatibleVersion(replServerInfo |
| | | .getProtocolVersion()); |
| | | if (keepConnection) |
| | | { |
| | | protocolVersion = localProtocolVersion; |