From a5f828cdb6549933c9f49783f99be1de1085a75e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 27 Aug 2013 09:57:22 +0000
Subject: [PATCH] Made code more encapsulated and more explicit. Removed parameters obscuring the code.

---
 opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java b/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
index 7afb0d0..edf8919 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
@@ -120,7 +120,7 @@
    * This map contains the List of updates received from each LDAP server.
    */
   private final Map<Integer, DbHandler> sourceDbHandlers =
-    new ConcurrentHashMap<Integer, DbHandler>();
+      new ConcurrentHashMap<Integer, DbHandler>();
   /** The ReplicationServer that created the current instance. */
   private ReplicationServer localReplicationServer;
 
@@ -1269,12 +1269,13 @@
   }
 
   /**
-   * Return a set containing the server that produced update and known by
-   * this replicationServer from all over the topology,
-   * whatever directly connected of connected to another RS.
-   * @return a set containing the servers known by this replicationServer.
+   * Returns a set containing the serverIds that produced updates and known by
+   * this replicationServer from all over the topology, whether directly
+   * connected or connected to another RS.
+   *
+   * @return a set containing the serverIds known by this replicationServer.
    */
-  public Set<Integer> getServers()
+  public Set<Integer> getServerIds()
   {
     return sourceDbHandlers.keySet();
   }

--
Gitblit v1.10.0