/** * Stops the service. Unregisters service activity and clears transaction listener. * @param context stop context */ public void stop(StopContext context) { final SuspendController suspendController = suspendControllerInjectedValue.getValue(); suspendController.unRegisterActivity(this); final LocalTransactionContext localTransactionContext = localTransactionContextInjectedValue.getValue(); localTransactionContext.removeCreationListener(this); }
@Override public void done() { synchronized (this) { if (this.deliveryActive) { this.deactivate(); } this.started = false; } if (this.pool != null) { this.pool.stop(); } suspendController.unRegisterActivity(serverActivity); super.done(); }
public synchronized void stop(StopContext context) { suspendControllerInjector.getValue().unRegisterActivity(recoverySuspendController); try { recoveryManagerService.stop(); } catch (Exception e) { // todo log } recoveryManagerService.destroy(); recoveryManagerService = null; recoverySuspendController = null; }
@Override public void stop(final StopContext context) { // Remove the server activity suspendControllerInjector.getValue().unRegisterActivity(serverActivity); final ExecutorService service = executorInjector.getValue(); final Runnable task = () -> { // Should already be stopped, but just to be safe we'll make one more attempt serverActivity.stopRunningJobs(false); batchEnvironment = null; classLoader = null; context.complete(); }; try { service.execute(task); } catch (RejectedExecutionException e) { task.run(); } finally { context.asynchronous(); } }
@Override public void stop(StopContext context) { server.getValue().unregisterHost(this); pathHandler.clearPaths(); if(gateHandlerWrapper != null) { gateHandlerWrapper.open(); gateHandlerWrapper = null; } UndertowLogger.ROOT_LOGGER.hostStopping(name); suspendControllerInjectedValue.getValue().unRegisterActivity(suspendListener); }
@Override public void stop(StopContext stopContext) { shutdownControllerInjectedValue.getValue().unRegisterActivity(this); timer.cancel(); timer = null; while (!taskQueue.isEmpty()) { QueuedTask t = taskQueue.poll(); if(t != null) { t.run(); } } }
public synchronized void stop(StopContext context) { suspendControllerInjector.getValue().unRegisterActivity(recoverySuspendController); try { recoveryManagerService.stop(); } catch (Exception e) { // todo log } recoveryManagerService.destroy(); recoveryManagerService = null; recoverySuspendController = null; }
public synchronized void stop(StopContext context) { suspendControllerInjector.getValue().unRegisterActivity(recoverySuspendController); try { recoveryManagerService.stop(); } catch (Exception e) { // todo log } recoveryManagerService.destroy(); recoveryManagerService = null; recoverySuspendController = null; }
@Override public void stop(StopContext context) { this.configuration.getSuspendController().unRegisterActivity(this); this.configuration.getUndertowService().unregisterListener(this); this.executor.shutdownNow(); try { this.executor.awaitTermination(this.configuration.getStatusInterval().toMillis(), TimeUnit.MILLISECONDS); } catch (InterruptedException ignore) { // Move on. } this.configuration.getContainerEventHandler().stop(this.server); }
@Override public void stop(final StopContext context) { // Remove the server activity suspendControllerInjector.getValue().unRegisterActivity(serverActivity); final ExecutorService service = executorInjector.getValue(); final Runnable task = () -> { // Should already be stopped, but just to be safe we'll make one more attempt serverActivity.stopRunningJobs(false); batchEnvironment = null; classLoader = null; context.complete(); }; try { service.execute(task); } catch (RejectedExecutionException e) { task.run(); } finally { context.asynchronous(); } }
@Override public void stop(StopContext context) { server.getValue().unregisterHost(this); pathHandler.clearPaths(); if(gateHandlerWrapper != null) { gateHandlerWrapper.open(); gateHandlerWrapper = null; } UndertowLogger.ROOT_LOGGER.hostStopping(name); suspendControllerInjectedValue.getValue().unRegisterActivity(suspendListener); }
@Override public void stop(StopContext context) { server.getValue().unregisterHost(this); pathHandler.clearPaths(); if(gateHandlerWrapper != null) { gateHandlerWrapper.open(); gateHandlerWrapper = null; } UndertowLogger.ROOT_LOGGER.hostStopping(name); suspendControllerInjectedValue.getValue().unRegisterActivity(suspendListener); }