| | |
| | | serverURL = inReplServerStartMsg.getServerURL(); |
| | | final String port = serverURL.substring(serverURL.lastIndexOf(':') + 1); |
| | | serverAddressURL = session.getRemoteAddress() + ":" + port; |
| | | setBaseDNAndDomain(inReplServerStartMsg.getBaseDn(), false); |
| | | DN baseDN = DN.decode(inReplServerStartMsg.getBaseDn()); |
| | | setBaseDNAndDomain(baseDN, false); |
| | | setInitialServerState(inReplServerStartMsg.getServerState()); |
| | | setSendWindowSize(inReplServerStartMsg.getWindowSize()); |
| | | if (protocolVersion > ProtocolVersion.REPLICATION_PROTOCOL_V1) |
| | |
| | | * @param sslEncryption The sslEncryption requested to the remote RS. |
| | | * @throws DirectoryException when an error occurs. |
| | | */ |
| | | public void connect(String baseDN, boolean sslEncryption) |
| | | throws DirectoryException |
| | | public void connect(DN baseDN, boolean sslEncryption) |
| | | throws DirectoryException |
| | | { |
| | | // we are the initiator and decides of the encryption |
| | | this.sslEncryption = sslEncryption; |
| | |
| | | |
| | | Message message = INFO_REPLICATION_SERVER_CONNECTION_TO_RS |
| | | .get(getReplicationServerId(), getServerId(), |
| | | replicationServerDomain.getBaseDn(), |
| | | replicationServerDomain.getBaseDN().toNormalizedString(), |
| | | session.getReadableRemoteAddress()); |
| | | logError(message); |
| | | |
| | |
| | | |
| | | Message message = INFO_REPLICATION_SERVER_CONNECTION_FROM_RS |
| | | .get(getReplicationServerId(), getServerId(), |
| | | replicationServerDomain.getBaseDn(), |
| | | replicationServerDomain.getBaseDN().toNormalizedString(), |
| | | session.getReadableRemoteAddress()); |
| | | logError(message); |
| | | |
| | |
| | | if (serverId != 0) |
| | | { |
| | | return "Replication server RS(" + serverId + ") for domain \"" |
| | | + replicationServerDomain.getBaseDn() + "\""; |
| | | + replicationServerDomain.getBaseDN() + "\""; |
| | | } |
| | | return "Unknown server"; |
| | | } |
| | |
| | | if (replicationServerDomain != null) |
| | | replicationServerDomain.receiveTopoInfoFromRS(topoMsg, this, true); |
| | | } |
| | | |
| | | } |