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

mrossign
07.15.2009 3af1c93c0de41be1cdfc0e6aff1d1c98f1d5530b
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -26,6 +26,7 @@
 */
package org.opends.server.replication.plugin;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -63,6 +64,9 @@
  // Referrals urls to be published to other servers of the topology
  SortedSet<String> refUrls = new TreeSet<String>();
  private SortedSet<String> fractionalExcludes = new TreeSet<String>();
  private SortedSet<String> fractionalIncludes = new TreeSet<String>();
  /**
   * Creates a new Domain with the provided information
   * (assured mode disabled, default group id)
@@ -76,6 +80,30 @@
  /**
   * Creates a new Domain with the provided information
   * (with some fractional configuration provided)
   */
  public DomainFakeCfg(DN baseDn, int serverId, SortedSet<String> replServers,
    List<String> fractionalExcludes, List<String> fractionalIncludes)
  {
    this(baseDn, serverId, replServers);
    if (fractionalExcludes != null)
    {
      for (String str : fractionalExcludes)
      {
        this.fractionalExcludes.add(str);
      }
    }
    if (fractionalIncludes != null)
    {
      for (String str : fractionalIncludes)
      {
        this.fractionalIncludes.add(str);
      }
    }
  }
  /**
   * Creates a new Domain with the provided information
   * (assured mode disabled, group id provided)
   */
  public DomainFakeCfg(DN baseDn, int serverId, SortedSet<String> replServers,
@@ -305,4 +333,14 @@
  {
    return refUrls;
  }
  public SortedSet<String> getFractionalExclude()
  {
    return fractionalExcludes;
  }
  public SortedSet<String> getFractionalInclude()
  {
    return fractionalIncludes;
  }
}