Exemple #1
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>            serviceNames     = serviceContainer.getServiceNames(ServiceTypes.PROCESS_ENGINE);

            foreach (string serviceName in serviceNames)
            {
                stopProcessEngine(serviceName, serviceContainer);
            }
        }
Exemple #2
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);
                }
            }
        }