Search in sources :

Example 1 with StopProcessEnginesStep

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();
}
Also used : StopProcessEnginesStep(org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep) RuntimeContainerDelegateImpl(org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl)

Example 2 with StopProcessEnginesStep

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());
}
Also used : StopJobExecutorStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StopJobExecutorStep) StandardServer(org.apache.catalina.core.StandardServer) StopManagedThreadPoolStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StopManagedThreadPoolStep) StopProcessEnginesStep(org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep) StopProcessApplicationsStep(org.camunda.bpm.container.impl.deployment.StopProcessApplicationsStep) UnregisterBpmPlatformPluginsStep(org.camunda.bpm.container.impl.deployment.UnregisterBpmPlatformPluginsStep)

Example 3 with StopProcessEnginesStep

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.");
}
Also used : StopJobExecutorStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StopJobExecutorStep) StopJcaExecutorServiceStep(org.camunda.bpm.container.impl.ejb.deployment.StopJcaExecutorServiceStep) StopProcessEnginesStep(org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep) RuntimeContainerDelegateImpl(org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl) StopProcessApplicationsStep(org.camunda.bpm.container.impl.deployment.StopProcessApplicationsStep) UnregisterBpmPlatformPluginsStep(org.camunda.bpm.container.impl.deployment.UnregisterBpmPlatformPluginsStep) PreDestroy(javax.annotation.PreDestroy)

Aggregations

StopProcessEnginesStep (org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep)3 RuntimeContainerDelegateImpl (org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl)2 StopProcessApplicationsStep (org.camunda.bpm.container.impl.deployment.StopProcessApplicationsStep)2 UnregisterBpmPlatformPluginsStep (org.camunda.bpm.container.impl.deployment.UnregisterBpmPlatformPluginsStep)2 StopJobExecutorStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StopJobExecutorStep)2 PreDestroy (javax.annotation.PreDestroy)1 StandardServer (org.apache.catalina.core.StandardServer)1 StopManagedThreadPoolStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StopManagedThreadPoolStep)1 StopJcaExecutorServiceStep (org.camunda.bpm.container.impl.ejb.deployment.StopJcaExecutorServiceStep)1