| | |
| | | import java.util.Set; |
| | | import java.util.SortedSet; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | import javax.naming.NamingException; |
| | | import javax.naming.ldap.InitialLdapContext; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | | import org.opends.guitools.controlpanel.browser.IconPool; |
| | |
| | | import org.opends.quicksetup.util.UIKeyStore; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.tools.ConfigureWindowsService; |
| | | import org.opends.server.util.StaticUtils; |
| | | |
| | | /** |
| | | * This is the classes that is shared among all the different places in the |
| | |
| | | desc.setStatus(status); |
| | | if (status == ServerDescriptor.ServerStatus.STOPPING) |
| | | { |
| | | if (ctx != null) |
| | | { |
| | | try |
| | | { |
| | | ctx.close(); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | } |
| | | this.ctx = null; |
| | | } |
| | | StaticUtils.close(ctx); |
| | | this.ctx = null; |
| | | if (userDataCtx != null) |
| | | { |
| | | if (connectionPool.isConnectionRegistered(userDataCtx)) |
| | |
| | | { |
| | | } |
| | | } |
| | | try |
| | | { |
| | | userDataCtx.close(); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | } |
| | | StaticUtils.close(userDataCtx); |
| | | userDataCtx = null; |
| | | } |
| | | } |
| | |
| | | |
| | | poolingThread = new Thread(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | try |