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

gbellato
10.29.2009 4594bba26216d84018569a042f6517d966bf106f
opends/src/server/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -836,4 +836,20 @@
    return privateDNs;
  }
  /**
   * Checks if a given serverID is used by a local Replication Domain.
   *
   * @param serverId   The serverID that should be checked.
   * @return           true if the serverID is local, false otherwise.
   */
  public static boolean isLocalServerId(Short serverId)
  {
    for (LDAPReplicationDomain domain : domains.values())
    {
      if (domain.getServerId() == serverId)
        return true;
    }
    return false;
  }
}