| | |
| | | public class SuffixDescriptor |
| | | { |
| | | private String suffixDN; |
| | | private Set<ReplicaDescriptor> replicas = new HashSet<ReplicaDescriptor>(); |
| | | private Set<ReplicaDescriptor> replicas = new HashSet<>(); |
| | | |
| | | /** |
| | | * Returns the DN associated with this suffix descriptor. |
| | |
| | | */ |
| | | public Set<ReplicaDescriptor> getReplicas() |
| | | { |
| | | return new HashSet<ReplicaDescriptor>(replicas); |
| | | return new HashSet<>(replicas); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public Set<String> getReplicationServers() |
| | | { |
| | | Set<String> replicationServers = new HashSet<String>(); |
| | | Set<String> replicationServers = new HashSet<>(); |
| | | for (ReplicaDescriptor replica : getReplicas()) |
| | | { |
| | | replicationServers.addAll(replica.getReplicationServers()); |