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) { log.error(sm.getString("http11protocol.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("http11protocol.pause", getName())); }
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { CoyoteLogger.AJP_LOGGER.errorPausingEndpoint(ex);
public void pause() throws Exception { try { endpoint.pause(); } catch (Exception ex) { CoyoteLogger.HTTP_APR_LOGGER.errorPausingEndpoint(ex);
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())); }
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 stopInternal() { if (!paused) { pause();
releaseConnectionLatch(); if (!paused) { pause();
releaseConnectionLatch(); if (!paused) { pause();
releaseConnectionLatch(); if (!paused) { pause();
releaseConnectionLatch(); if (!paused) { pause();