/** * {@inhericDoc} * @see org.jboss.modcluster.ContainerEventHandler#stop(org.jboss.modcluster.Context) */ public void stop(Context context) { if (this.established && this.include(context)) { this.log.debug(Strings.CONTEXT_STOP.getString(context, context.getHost())); this.disable(context); long start = System.currentTimeMillis(); long end = start + this.mcmpConfig.getStopContextTimeoutUnit().toMillis(this.mcmpConfig.getStopContextTimeout()); if (this.mcmpConfig.getSessionDrainingStrategy().isEnabled(context)) { // If the session manager is not distributed // we need to drain the active sessions // before draining pending requests. this.drainSessions(context, start, end); } // Drain pending requests via iterative STOP-APP commands this.drainRequests(context, start, end); } }
@Override public void stop(Context context) { ModClusterLogger.LOGGER.stopContext(context.getHost(), context); if (this.established && this.include(context)) { this.disable(context); long start = System.currentTimeMillis(); long end = start + this.mcmpConfig.getStopContextTimeoutUnit().toMillis(this.mcmpConfig.getStopContextTimeout()); if (this.mcmpConfig.getSessionDrainingStrategy().isEnabled(context)) { // If the session manager is not distributed // we need to drain the active sessions // before draining pending requests. this.drainSessions(context, start, end); } // Drain pending requests via iterative STOP-APP commands this.drainRequests(context, start, end); } }
/** * {@inhericDoc} * * @see org.jboss.modcluster.ContainerEventHandler#stop(org.jboss.modcluster.Context) */ @Override public void stop(Context context) { ModClusterLogger.LOGGER.stopContext(context.getHost(), context); if (this.established && this.include(context)) { this.disable(context); long start = System.currentTimeMillis(); long end = start + this.mcmpConfig.getStopContextTimeoutUnit().toMillis(this.mcmpConfig.getStopContextTimeout()); if (this.mcmpConfig.getSessionDrainingStrategy().isEnabled(context)) { // If the session manager is not distributed // we need to drain the active sessions // before draining pending requests. this.drainSessions(context, start, end); } // Drain pending requests via iterative STOP-APP commands this.drainRequests(context, start, end); } }