| | |
| | | { |
| | | // This RS is locally configured, mark this |
| | | replicationServerInfo.setLocallyConfigured(true); |
| | | replicationServerInfo.serverURL = serverUrl; |
| | | return; |
| | | } |
| | | } |
| | |
| | | * Create a new instance of ReplicationServerInfo wrapping the passed |
| | | * message. |
| | | * @param msg Message to wrap. |
| | | * @param server Override serverURL. |
| | | * @return The new instance wrapping the passed message. |
| | | * @throws IllegalArgumentException If the passed message has an unexpected |
| | | * type. |
| | | */ |
| | | public static ReplicationServerInfo newInstance( |
| | | ReplicationMsg msg, String server) throws IllegalArgumentException |
| | | { |
| | | ReplicationServerInfo rsInfo = newInstance(msg); |
| | | rsInfo.serverURL = server; |
| | | return rsInfo; |
| | | } |
| | | |
| | | /** |
| | | * Create a new instance of ReplicationServerInfo wrapping the passed |
| | | * message. |
| | | * @param msg Message to wrap. |
| | | * @return The new instance wrapping the passed message. |
| | | * @throws IllegalArgumentException If the passed message has an unexpected |
| | | * type. |
| | |
| | | |
| | | // Wrap received message in a server info object |
| | | ReplicationServerInfo replServerInfo = ReplicationServerInfo |
| | | .newInstance(msg); |
| | | .newInstance(msg, server); |
| | | |
| | | // Sanity check |
| | | String repDn = replServerInfo.getBaseDn(); |