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();
}
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();
}
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.");
}
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.");
}
Aggregations