use of org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep in project camunda-bpm-platform by camunda.
the class PlatformJobExecutorActivateTest method undeployPlatform.
private void undeployPlatform() {
RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl) RuntimeContainerDelegate.INSTANCE.get();
containerDelegate.getServiceContainer().createUndeploymentOperation("deploy BPM platform").addStep(new StopJobExecutorStep()).addStep(new StopProcessEnginesStep()).addStep(new StopManagedThreadPoolStep()).execute();
}
use of org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep in project camunda-bpm-platform by camunda.
the class TomcatBpmPlatformBootstrap method undeployBpmPlatform.
protected void undeployBpmPlatform(LifecycleEvent event) {
final StandardServer server = (StandardServer) event.getSource();
containerDelegate.getServiceContainer().createUndeploymentOperation("undeploy BPM platform").addAttachment(TomcatAttachments.SERVER, server).addStep(new StopJobExecutorStep()).addStep(new StopManagedThreadPoolStep()).addStep(new StopProcessApplicationsStep()).addStep(new StopProcessEnginesStep()).addStep(new UnregisterBpmPlatformPluginsStep()).execute();
LOG.camundaBpmPlatformStopped(server.getServerInfo());
}
use of org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep in project camunda-bpm-platform by camunda.
the class EjbBpmPlatformBootstrap method stop.
@PreDestroy
protected void stop() {
final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
containerDelegate.getServiceContainer().createUndeploymentOperation("undeploying camunda BPM platform").addStep(new StopProcessApplicationsStep()).addStep(new StopProcessEnginesStep()).addStep(new StopJobExecutorStep()).addStep(new StopJcaExecutorServiceStep()).addStep(new UnregisterBpmPlatformPluginsStep()).execute();
LOGGER.log(Level.INFO, "camunda BPM platform stopped.");
}
Aggregations