From b1b48de3863ef41912751eb3a276ac233dc739e9 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 22 Aug 2016 12:47:36 +0000
Subject: [PATCH] OPENDJ-3262 Replication: dsreplication enable raises IllegalArgumentException
---
opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java b/opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java
index c4b256e..3bd7e71 100644
--- a/opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java
@@ -202,7 +202,7 @@
*/
public HostPort getReplicationServerHostPort()
{
- return isReplicationServer() ? getReplicationServer(getHostName(), getReplicationServerPort()) : null;
+ return isReplicationServer() ? new HostPort(getHostName(), getReplicationServerPort()) : null;
}
/**
@@ -1120,19 +1120,6 @@
}
/**
- * Returns the replication server normalized String for a given host name
- * and replication port.
- * @param hostName the host name.
- * @param replicationPort the replication port.
- * @return the replication server normalized String for a given host name
- * and replication port.
- */
- public static HostPort getReplicationServer(String hostName, int replicationPort)
- {
- return new HostPort(hostName, replicationPort);
- }
-
- /**
* Returns a representation of a base DN for a set of servers.
* @param baseDN the base DN.
* @param servers the servers.
--
Gitblit v1.10.0