From 3225377d57acd0db675bdc27723a1f9f536526ab Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 07 Jul 2016 10:38:32 +0000
Subject: [PATCH] Use HostPort more in replication

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
index 18bdbe5..688cc98 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
@@ -83,6 +83,7 @@
 import org.opends.server.tasks.InitializeTargetTask;
 import org.opends.server.tasks.InitializeTask;
 import org.opends.server.types.DirectoryException;
+import org.opends.server.types.HostPort;
 
 /**
  * This class should be used as a base for Replication implementations.
@@ -2698,7 +2699,7 @@
    * @return the name of the replicationServer to which this domain
    *         is currently connected.
    */
-  public String getReplicationServer()
+  public HostPort getReplicationServer()
   {
     if (broker != null)
     {
@@ -3447,10 +3448,10 @@
    *
    * @return The local address.
    */
-  String getLocalUrl()
+  HostPort getLocalUrl()
   {
     final ReplicationBroker tmp = broker;
-    return tmp != null ? tmp.getLocalUrl() : "";
+    return tmp != null ? tmp.getLocalUrl() : ReplicationBroker.NO_CONNECTED_SERVER;
   }
 
   /**

--
Gitblit v1.10.0