| | |
| | | import org.opends.server.types.HostPort; |
| | | |
| | | /** |
| | | * The object of this class represent an OpenDS server instance. |
| | | * The object of this class represent an OpenDJ server instance. |
| | | * <p> |
| | | * It can represent either a DS-only, a RS-only or a combined DS-RS. |
| | | */ |
| | |
| | | { |
| | | SearchResultEntry sr = entryReader.readEntry(); |
| | | |
| | | int id = asInteger(sr, "ds-cfg-server-id"); |
| | | int serverId = asInteger(sr, "ds-cfg-server-id"); |
| | | Set<HostPort> replicationServers = toHostPorts(asSetOfString(sr, "ds-cfg-replication-server")); |
| | | Set<DN> dns = asSetOfDN(sr, "ds-cfg-base-dn"); |
| | | for (DN dn : dns) |
| | |
| | | { |
| | | if (replica.getSuffix().getDN().equals(dn)) |
| | | { |
| | | replica.setReplicationId(id); |
| | | replica.setServerId(serverId); |
| | | replica.setReplicationServers(replicationServers); |
| | | allReplicationServers.addAll(replicationServers); |
| | | } |