| | |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | | import java.util.List; |
| | | import java.util.SortedSet; |
| | | |
| | | import java.util.TreeSet; |
| | |
| | | // 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) |
| | |
| | | |
| | | /** |
| | | * 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, |
| | |
| | | { |
| | | return refUrls; |
| | | } |
| | | |
| | | public SortedSet<String> getFractionalExclude() |
| | | { |
| | | return fractionalExcludes; |
| | | } |
| | | |
| | | public SortedSet<String> getFractionalInclude() |
| | | { |
| | | return fractionalIncludes; |
| | | } |
| | | } |