Ejemplo n.º 1
0
//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.");
        }
Ejemplo n.º 2
0
//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.");
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        protected internal virtual ProcessEngine getProcessEngine(string engineName)
        {
            RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get();

            return(containerDelegate.getProcessEngine(engineName));
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
        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();
        }