Example #1
0
        public virtual void close()
        {
            ProcessEngines.unregister(this);

            if (processEngineConfiguration.MetricsEnabled)
            {
                processEngineConfiguration.DbMetricsReporter.stop();
            }

            if ((jobExecutor != null))
            {
                // unregister process engine with Job Executor
                jobExecutor.unregisterProcessEngine(this);
            }

            commandExecutorSchemaOperations.execute(new SchemaOperationProcessEngineClose());

            processEngineConfiguration.close();

            LOG.processEngineClosed(name);
        }