@Override public void stop() throws LifecycleException { try { shutdownRedisson(); } catch (Exception e) { throw new LifecycleException(e); } lifecycle.fireLifecycleEvent(STOP_EVENT, null); }
lifecycle.fireLifecycleEvent(START_EVENT, null);
this.lifecycle.fireLifecycleEvent(STOP_EVENT, null);
return; this.lifecycle.fireLifecycleEvent(START_EVENT, null); try { init();
this.lifecycle.fireLifecycleEvent(START_EVENT, null);
this.lifecycle.fireLifecycleEvent(STOP_EVENT, null);
/** * {@inheritDoc} */ @Override public void stop() throws LifecycleException { if (log.isDebugEnabled()) { log.debug("Stopping"); } // Validate and update our current component state if (!_started) { throw new LifecycleException (sm.getString("standardManager.notStarted")); } _lifecycle.fireLifecycleEvent(STOP_EVENT, null); _started = false; // Require a new random number generator if we are restarted random = null; if ( initialized ) { if ( _msm.isSticky() ) { _log.info( "Removing sessions from local session map." ); for( final Session session : sessions.values() ) { swapOut( (StandardSession) session ); } } _msm.shutdown(); destroy(); } }
public void start() throws LifecycleException { lifecycle.fireLifecycleEvent(BEFORE_START_EVENT, null); lifecycle.fireLifecycleEvent(START_EVENT, null); lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null); }
public void stop() throws LifecycleException { lifecycle.fireLifecycleEvent(BEFORE_STOP_EVENT, null); lifecycle.fireLifecycleEvent(STOP_EVENT, null); lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null); }
/** * {@inheritDoc} */ @Override public void start() throws LifecycleException { if( ! initialized ) { init(); } // Validate and update our current component state if (_started) { return; } _lifecycle.fireLifecycleEvent(START_EVENT, null); _started = true; // Force initialization of the random number generator if (log.isDebugEnabled()) { log.debug("Force random number initialization starting"); } super.generateSessionId(); if (log.isDebugEnabled()) { log.debug("Force random number initialization completed"); } startInternal( null ); }
/** * Allow sub classes to fire {@link Lifecycle} events. * * @param type Event type * @param data Data associated with event. */ protected void fireLifecycleEvent(String type, Object data) { lifecycle.fireLifecycleEvent(type, data); }
/** * Allow sub classes to fire {@link Lifecycle} events. * * @param type Event type * @param data Data associated with event. */ protected void fireLifecycleEvent(String type, Object data) { lifecycle.fireLifecycleEvent(type, data); }
public void stop() throws LifecycleException{ lifecycle.fireLifecycleEvent(BEFORE_STOP_EVENT, null); lifecycle.fireLifecycleEvent(STOP_EVENT, null); if ( executor != null ) executor.shutdown(); executor = null; lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null); }
public void stop() throws LifecycleException { support.fireLifecycleEvent(STOP_EVENT, this); unsharableResources.clear(); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { lifecycle.fireLifecycleEvent(UNBIND_THREAD_EVENT, null); threadBindingListener.unbind(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); oldContextClassLoader = null; }
public void start() throws LifecycleException { // Validate and update our current component state if (started) throw new LifecycleException(MESSAGES.valveAlreadyStarted()); lifecycle.fireLifecycleEvent(START_EVENT, null); started = true; uaPattern = Pattern.compile(crawlerUserAgents); }
public void stop() throws LifecycleException { // Validate and update our current component state if (!started) throw new LifecycleException(MESSAGES.valveNotStarted()); lifecycle.fireLifecycleEvent(STOP_EVENT, null); started = false; }
public void start() throws LifecycleException { super.start(); this.ticketValidator = new Cas10TicketValidator(getCasServerUrlPrefix()); lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null); logger.info("Startup completed."); } }
public synchronized void init() throws Exception { super.init(); // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(INIT_EVENT, null); // Send j2ee.state.starting notification if (this.getObjectName() != null) { Notification notification = new Notification("j2ee.state.starting", this.getObjectName(), sequenceNumber++); broadcaster.sendNotification(notification); } }
public void start() throws LifecycleException { super.start(); this.ticketValidator = new Cas20ServiceTicketValidator(getCasServerUrlPrefix()); if (getEncoding() != null) { this.ticketValidator.setEncoding(getEncoding()); } this.ticketValidator.setProxyCallbackUrl(getProxyCallbackUrl()); this.ticketValidator.setProxyGrantingTicketStorage(ProxyCallbackValve.getProxyGrantingTicketStorage()); this.ticketValidator.setRenew(isRenew()); lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null); logger.info("Startup completed."); } }