//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @PreDestroy protected void stop() protected internal virtual void stop() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate(); RuntimeContainerDelegateImpl containerDelegate = ContainerDelegate; containerDelegate.ServiceContainer.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."); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @PostConstruct protected void start() protected internal virtual void start() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate(); RuntimeContainerDelegateImpl containerDelegate = ContainerDelegate; containerDelegate.ServiceContainer.createDeploymentOperation("deploying camunda BPM platform").addStep(new EjbJarParsePlatformXmlStep()).addStep(new DiscoverBpmPlatformPluginsStep()).addStep(new StartJcaExecutorServiceStep(executorServiceBean)).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute(); processEngineService = containerDelegate.ProcessEngineService; processApplicationService = containerDelegate.ProcessApplicationService; LOGGER.log(Level.INFO, "camunda BPM platform started successfully."); }
public virtual void lifecycleEvent(LifecycleEvent @event) { if (Lifecycle.START_EVENT.Equals(@event.Type)) { // the Apache Tomcat integration uses the Jmx Container for managing process engines and applications. containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get(); deployBpmPlatform(@event); } else if (Lifecycle.STOP_EVENT.Equals(@event.Type)) { undeployBpmPlatform(@event); } }
protected internal virtual ProcessEngine getProcessEngine(string engineName) { RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get(); return(containerDelegate.getProcessEngine(engineName)); }
private void deployPlatform(BpmPlatformXmlImpl bpmPlatformXml) { RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get(); containerDelegate.ServiceContainer.createDeploymentOperation("deploy BPM platform").addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml).addStep(new StartManagedThreadPoolStep()).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute(); }
private void undeployPlatform() { RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get(); containerDelegate.ServiceContainer.createUndeploymentOperation("deploy BPM platform").addStep(new StopJobExecutorStep()).addStep(new StopProcessEnginesStep()).addStep(new StopManagedThreadPoolStep()).execute(); }