mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

mrossign
19.59.2008 6de41a9bdb199394a52b801b0f9b168696647218
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
@@ -886,12 +886,12 @@
  }
  /**
   * Stop operations with a list of servers.
   * Stop operations with a list of replication servers.
   *
   * @param replServers the replication servers for which
   * we want to stop operations
   */
  public void stopServers(Collection<String> replServers)
  public void stopReplicationServers(Collection<String> replServers)
  {
    for (ServerHandler handler : replicationServers.values())
    {
@@ -901,6 +901,24 @@
  }
  /**
   * Stop operations with all servers this domain is connected with (RS and DS).
   */
  public void stopAllServers()
  {
    // Close session with other replication servers
    for (ServerHandler serverHandler : replicationServers.values())
    {
      stopServer(serverHandler);
    }
    // Close session with other LDAP servers
    for (ServerHandler serverHandler : directoryServers.values())
    {
      stopServer(serverHandler);
    }
  }
  /**
   * Checks that a DS is not connected with same id.
   *
   * @param handler the DS we want to check
@@ -1478,17 +1496,7 @@
    // Terminate the assured timer
    assuredTimeoutTimer.cancel();
    // Close session with other changelogs
    for (ServerHandler serverHandler : replicationServers.values())
    {
      stopServer(serverHandler);
    }
    // Close session with other LDAP servers
    for (ServerHandler serverHandler : directoryServers.values())
    {
      stopServer(serverHandler);
    }
    stopAllServers();
    // Shutdown the dbHandlers
    synchronized (sourceDbHandlers)