| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.config.server.ConfigChangeResult; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.admin.server.ConfigurationAddListener; |
| | |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.replication.service.DSRSShutdownSync; |
| | | import org.opends.server.types.BackupConfig; |
| | | import org.forgerock.opendj.config.server.ConfigChangeResult; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | } |
| | | } |
| | | // if state is STOPPING, then we need to return from this method |
| | | final LDAPReplicationDomain domain = getDomain(baseDN); |
| | | final LDAPReplicationDomain domain = domains.get(baseDN); |
| | | return domain != null && domain.isECLEnabled(); |
| | | } |
| | | |
| | | private static LDAPReplicationDomain getDomain(DN baseDN) |
| | | { |
| | | for (LDAPReplicationDomain domain : domains.values()) |
| | | { |
| | | if (domain.getBaseDN().equals(baseDN)) |
| | | { |
| | | return domain; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * Returns the connection timeout in milli-seconds. |
| | | * |