Search in sources :

Example 1 with RuntimeContainerDelegateImpl

use of org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl 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 RuntimeContainerDelegateImpl

use of org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl in project camunda-bpm-platform by camunda.

the class PlatformJobExecutorActivateTest method deployPlatform.

private void deployPlatform(BpmPlatformXmlImpl bpmPlatformXml) {
    RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl) RuntimeContainerDelegate.INSTANCE.get();
    containerDelegate.getServiceContainer().createDeploymentOperation("deploy BPM platform").addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml).addStep(new StartManagedThreadPoolStep()).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute();
}
Also used : PlatformXmlStartProcessEnginesStep(org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep) RuntimeContainerDelegateImpl(org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl)

Example 3 with RuntimeContainerDelegateImpl

use of org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl in project camunda-bpm-platform by camunda.

the class EjbBpmPlatformBootstrap method start.

@PostConstruct
protected void start() {
    final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
    containerDelegate.getServiceContainer().createDeploymentOperation("deploying camunda BPM platform").addStep(new EjbJarParsePlatformXmlStep()).addStep(new DiscoverBpmPlatformPluginsStep()).addStep(new StartJcaExecutorServiceStep(executorServiceBean)).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute();
    processEngineService = containerDelegate.getProcessEngineService();
    processApplicationService = containerDelegate.getProcessApplicationService();
    LOGGER.log(Level.INFO, "camunda BPM platform started successfully.");
}
Also used : StartJobExecutorStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep) DiscoverBpmPlatformPluginsStep(org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep) PlatformXmlStartProcessEnginesStep(org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep) StartJcaExecutorServiceStep(org.camunda.bpm.container.impl.ejb.deployment.StartJcaExecutorServiceStep) RuntimeContainerDelegateImpl(org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl) EjbJarParsePlatformXmlStep(org.camunda.bpm.container.impl.ejb.deployment.EjbJarParsePlatformXmlStep) PostConstruct(javax.annotation.PostConstruct)

Example 4 with RuntimeContainerDelegateImpl

use of org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl 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

RuntimeContainerDelegateImpl (org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl)4 PlatformXmlStartProcessEnginesStep (org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep)2 StopProcessEnginesStep (org.camunda.bpm.container.impl.deployment.StopProcessEnginesStep)2 PostConstruct (javax.annotation.PostConstruct)1 PreDestroy (javax.annotation.PreDestroy)1 DiscoverBpmPlatformPluginsStep (org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep)1 StopProcessApplicationsStep (org.camunda.bpm.container.impl.deployment.StopProcessApplicationsStep)1 UnregisterBpmPlatformPluginsStep (org.camunda.bpm.container.impl.deployment.UnregisterBpmPlatformPluginsStep)1 StartJobExecutorStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep)1 StopJobExecutorStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StopJobExecutorStep)1 EjbJarParsePlatformXmlStep (org.camunda.bpm.container.impl.ejb.deployment.EjbJarParsePlatformXmlStep)1 StartJcaExecutorServiceStep (org.camunda.bpm.container.impl.ejb.deployment.StartJcaExecutorServiceStep)1 StopJcaExecutorServiceStep (org.camunda.bpm.container.impl.ejb.deployment.StopJcaExecutorServiceStep)1