@Override public void stopInternal() { releaseConnectionLatch(); if (!paused) { pause(); } if (running) { running = false; unlockAccept(); } shutdownExecutor(); }
@Override public void stopInternal() { releaseConnectionLatch(); if (!paused) { pause(); } if (running) { running = false; unlockAccept(); } shutdownExecutor(); }
@Override public void stopInternal() { releaseConnectionLatch(); if (!paused) { pause(); } if (running) { running = false; unlockAccept(); } shutdownExecutor(); }
@Override public void stopInternal() { releaseConnectionLatch(); if (!paused) { pause(); } if (running) { running = false; unlockAccept(); } shutdownExecutor(); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { log.error(sm.getString("http11protocol.endpoint.pauseerror"), ex); throw ex; } // Wait for a while until all the processors are no longer processing requests RequestInfo[] states = cHandler.global.getRequestProcessors(); int retry = 0; boolean done = false; while (!done && retry < 20) { retry++; for (int i = 0; i < states.length; i++) { if (states[i].getStage() == org.apache.coyote.Constants.STAGE_SERVICE) { try { Thread.sleep(1000); } catch (InterruptedException e) { ; } continue; } } done = true; } if (log.isInfoEnabled()) log.info(sm.getString("http11protocol.pause", getName())); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { log.error(sm.getString("ajpprotocol.endpoint.pauseerror"), ex); throw ex; } // Wait for a while until all the processors are idle RequestInfo[] states = cHandler.global.getRequestProcessors(); int retry = 0; boolean done = false; while (!done && retry < 20) { retry++; for (int i = 0; i < states.length; i++) { if (states[i].getStage() == org.apache.coyote.Constants.STAGE_SERVICE) { try { Thread.sleep(1000); } catch (InterruptedException e) { ; } continue; } } done = true; } if (log.isInfoEnabled()) log.info(sm.getString("ajpprotocol.pause", getName())); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { CoyoteLogger.HTTP_BIO_LOGGER.errorPausingEndpoint(ex); throw ex; } // Wait for a while until all the processors are no longer processing requests RequestInfo[] states = cHandler.global.getRequestProcessors(); int retry = 0; boolean done = false; while (!done && retry < org.apache.coyote.Constants.MAX_PAUSE_WAIT) { retry++; done = true; for (int i = 0; i < states.length; i++) { if (states[i].getStage() == org.apache.coyote.Constants.STAGE_SERVICE) { try { Thread.sleep(1000); } catch (InterruptedException e) { ; } done = false; break; } } } CoyoteLogger.HTTP_BIO_LOGGER.pauseHttpConnector(getName()); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { log.error(sm.getString("http11protocol.endpoint.pauseerror"), ex); throw ex; } if (log.isInfoEnabled()) log.info(sm.getString("http11protocol.pause", getName())); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { CoyoteLogger.AJP_LOGGER.errorPausingEndpoint(ex); throw ex; } // Wait for a while until all the processors are idle RequestInfo[] states = cHandler.global.getRequestProcessors(); int retry = 0; boolean done = false; while (!done && retry < org.apache.coyote.Constants.MAX_PAUSE_WAIT) { retry++; done = true; for (int i = 0; i < states.length; i++) { if (states[i].getStage() == org.apache.coyote.Constants.STAGE_SERVICE) { try { Thread.sleep(1000); } catch (InterruptedException e) { ; } done = false; break; } } } CoyoteLogger.AJP_LOGGER.pausingAjpProtocol(getName()); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { log.error(sm.getString("ajpprotocol.endpoint.pauseerror"), ex); throw ex; } if (log.isInfoEnabled()) log.info(sm.getString("ajpprotocol.pause", getName())); }