Exemple #1
0
 /// <summary>
 /// Stops a process engine, failures are logged but no exceptions are thrown.
 ///
 /// </summary>
 private void stopProcessEngine(string serviceName, PlatformServiceContainer serviceContainer)
 {
     try
     {
         serviceContainer.stopService(serviceName);
     }
     catch (Exception e)
     {
         LOG.exceptionWhileStopping("Process Engine", serviceName, e);
     }
 }
Exemple #2
0
        protected internal virtual void stopProcessEngine(string processEngineName, DeploymentOperation operationContext)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            try
            {
                serviceContainer.stopService(ServiceTypes.PROCESS_ENGINE, processEngineName);
            }
            catch (Exception e)
            {
                LOG.exceptionWhileStopping("Process Engine", processEngineName, e);
            }
        }
Exemple #3
0
        public override void performOperationStep(DeploymentOperation operationContext)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            ISet <string> jobExecutorServiceNames = serviceContainer.getServiceNames(ServiceTypes.JOB_EXECUTOR);

            foreach (string serviceName in jobExecutorServiceNames)
            {
                try
                {
                    serviceContainer.stopService(serviceName);
                }
                catch (Exception e)
                {
                    LOG.exceptionWhileStopping("Job Executor Service", serviceName, e);
                }
            }
        }