| | |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | import javax.naming.NameNotFoundException; |
| | | import javax.naming.NamingEnumeration; |
| | | import javax.naming.NamingException; |
| | |
| | | import javax.naming.ldap.InitialLdapContext; |
| | | import javax.naming.ldap.LdapName; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.admin.ads.ADSContext.ServerProperty; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | |
| | | import org.opends.admin.ads.util.ServerLoader; |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | /** |
| | |
| | | private final Set<PreferredConnection> preferredConnections = |
| | | new LinkedHashSet<PreferredConnection>(); |
| | | private final TopologyCacheFilter filter = new TopologyCacheFilter(); |
| | | private final static int MULTITHREAD_TIMEOUT = 90 * 1000; |
| | | private static final int MULTITHREAD_TIMEOUT = 90 * 1000; |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** |
| | |
| | | |
| | | break; |
| | | case GENERIC_CREATING_CONNECTION: |
| | | if (Utils.isCertificateException(e.getCause())) |
| | | if (isCertificateException(e.getCause())) |
| | | { |
| | | exceptionMsgs.add( |
| | | INFO_ERROR_READING_CONFIG_LDAP_CERTIFICATE_SERVER.get( |
| | |
| | | // This is not a replica, but a replication server. Skip it |
| | | continue; |
| | | } |
| | | replicaId = new Integer(sid); |
| | | replicaId = Integer.valueOf(sid); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | |
| | | { |
| | | if (Utils.areDnsEqual(dn, replica.getSuffix().getDN()) |
| | | && replica.isReplicated() |
| | | && (replica.getReplicationId() == replicaId)) |
| | | && replica.getReplicationId() == replicaId) |
| | | { |
| | | // This statistic is optional. |
| | | String s = ConnectionUtils.getFirstValue(sr, |