@Override public void destroy() { executor.shutdownNow(); super.destroy(); } }
@Override public void destroy() { super.destroy(); final ContainerLifecycleListener listener = containerListener; if (listener != null) { listener.onShutdown(this); } }
@Override public void destroy() { super.destroy(); final ContainerLifecycleListener listener = containerListener; if (listener != null) { listener.onShutdown(this); } }
@Override public void destroy() { super.destroy(); sessionManager.stop(); }
@Override public void destroy() { super.destroy(); _userTaskManager.close(); }
/** {@inheritDoc} */ @Override public void destroy() { LOGGER.info("collector servlet stopping"); if (collectorServer != null) { collectorServer.stop(); } Collector.stopJRobin(); LOGGER.info("collector servlet stopped"); super.destroy(); }
super.destroy();
/** {@inheritDoc} */ @Override public void destroy() { // Cleanup connections Collection<RTMPConnection> conns = manager.getAllConnections(); for (RTMPConnection conn : conns) { if (conn instanceof RTMPTConnection) { log.debug("Connection scope on destroy: {}", conn.getScope()); conn.close(); } } super.destroy(); }
@Override public void destroy() { super.destroy(); try { wsFactory.stop(); } catch (Exception e) { log.warning("Error stopping WebSocket server", e); } if (proxyUrl != null) { try { httpClient.stop(); } catch (Exception e) { log.warning("Error stopping HTTP client", e); } try { wsClient.stop(); } catch (Exception e) { log.warning("Error stopping WebSocket client", e); } } stopped = true; synchronized (statusLock) { if (waiting) { buildThread.interrupt(); } } }
public void destroy(Set<HttpServlet> destroyedSoFar) { HttpServlet reference = httpServlet.get(); // Do nothing if this Servlet was invalid (usually due to not being scoped // properly). According to Servlet Spec: it is "out of service", and does not // need to be destroyed. // Also prevent duplicate destroys to the same singleton that may appear // more than once on the filter chain. if (null == reference || destroyedSoFar.contains(reference)) { return; } try { reference.destroy(); } finally { destroyedSoFar.add(reference); } }
@Override public void destroy() { super.destroy(); servletContainerDispatcher.destroy(); }
protected void doPortalDestroy() { Thread currentThread = Thread.currentThread(); ClassLoader contextClassLoader = currentThread.getContextClassLoader(); try { currentThread.setContextClassLoader( PortalClassLoaderUtil.getClassLoader()); if (_servlet != null) { _servlet.destroy(); } } finally { currentThread.setContextClassLoader(contextClassLoader); } }
@Override public void destroy() { //Usually, clients implement Closeable: if (proxyClient instanceof Closeable) { try { ((Closeable) proxyClient).close(); } catch (IOException e) { log("While destroying servlet, shutting down HttpClient: "+e, e); } } else { //Older releases require we do this: if (proxyClient != null) proxyClient.getConnectionManager().shutdown(); } super.destroy(); }
/** * Remove all of the servlets defined for this module * * @param mod the module that is being stopped that needs its servlets removed */ public static void unloadServlets(Module mod) { Element rootNode = mod.getConfig().getDocumentElement(); NodeList servletTags = rootNode.getElementsByTagName("servlet"); for (int i = 0; i < servletTags.getLength(); i++) { Node node = servletTags.item(i); NodeList childNodes = node.getChildNodes(); String name; for (int j = 0; j < childNodes.getLength(); j++) { Node childNode = childNodes.item(j); if ("servlet-name".equals(childNode.getNodeName()) && childNode.getTextContent() != null) { name = childNode.getTextContent().trim(); HttpServlet servlet = moduleServlets.get(name); if (servlet != null) { servlet.destroy(); // shut down the servlet moduleServlets.remove(name); } } } } }
/** {@inheritDoc} */ @Override public void destroy() { backendManager.destroy(); if (discoveryMulticastResponder != null) { discoveryMulticastResponder.stop(); discoveryMulticastResponder = null; } super.destroy(); }
@Override public void destroy() { super.destroy(); if (getService() != null) { getService().destroy(); } }
@Override public void destroy() { super.destroy(); }
/** * Shutdown the servlet. */ public void destroy() { log.info("destroy"); super.destroy(); }
/** * Shutdown the servlet. */ public void destroy() { log.info("destroy()"); portalService.removePortal(this); super.destroy(); }
@After public void tearDown() throws Exception { System.err.println("------------------------------------------------------------------------------"); beforeServletDestroy(); if (getDispatcher() != null) { getDispatcher().destroy(); } afterServletDestroy(); }