From d6b296f5b3549079495ff902803d629dbbcb85b5 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 19 Aug 2016 13:36:19 +0000
Subject: [PATCH] installer, dsreplication, uninstaller: use HostPort
---
opendj-server-legacy/src/main/java/org/opends/admin/ads/ReplicaDescriptor.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/admin/ads/ReplicaDescriptor.java b/opendj-server-legacy/src/main/java/org/opends/admin/ads/ReplicaDescriptor.java
index e9adff3..5e92c6e 100644
--- a/opendj-server-legacy/src/main/java/org/opends/admin/ads/ReplicaDescriptor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/admin/ads/ReplicaDescriptor.java
@@ -19,6 +19,8 @@
import java.util.HashSet;
import java.util.Set;
+import org.opends.server.types.HostPort;
+
/**
* The object of this class represent a Replica, i.e. a suffix in a given server instance.
* <p>
@@ -30,7 +32,7 @@
/** Number of entries held by this replica. */
private int nbEntries = -1;
private ServerDescriptor server;
- private final Set<String> replicationServers = new HashSet<>();
+ private final Set<HostPort> replicationServers = new HashSet<>();
/** This corresponds to the server-id of this replica. */
private int replicationId = -1;
private int missingChanges = -1;
@@ -125,7 +127,7 @@
* @return a set containing the String representation of the replication
* servers that are defined in the replication domain for this replica.
*/
- public Set<String> getReplicationServers()
+ public Set<HostPort> getReplicationServers()
{
return new HashSet<>(replicationServers);
}
@@ -137,7 +139,7 @@
* representation) that are defined in the replication domain for this
* replica.
*/
- public void setReplicationServers(Set<String> replicationServers)
+ public void setReplicationServers(Set<HostPort> replicationServers)
{
this.replicationServers.clear();
this.replicationServers.addAll(replicationServers);
--
Gitblit v1.10.0