Search in sources :

Example 6 with JmxManagedProcessApplication

use of org.camunda.bpm.container.impl.jmx.services.JmxManagedProcessApplication in project camunda-bpm-platform by camunda.

the class ProcessesXmlStopProcessEnginesStep method performOperationStep.

public void performOperationStep(DeploymentOperation operationContext) {
    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
    final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);
    final JmxManagedProcessApplication deployedProcessApplication = serviceContainer.getService(ServiceTypes.PROCESS_APPLICATION, processApplication.getName());
    ensureNotNull("Cannot find process application with name " + processApplication.getName(), "deployedProcessApplication", deployedProcessApplication);
    List<ProcessesXml> processesXmls = deployedProcessApplication.getProcessesXmls();
    for (ProcessesXml processesXml : processesXmls) {
        stopProcessEngines(processesXml.getProcessEngines(), operationContext);
    }
}
Also used : AbstractProcessApplication(org.camunda.bpm.application.AbstractProcessApplication) ProcessesXml(org.camunda.bpm.application.impl.metadata.spi.ProcessesXml) PlatformServiceContainer(org.camunda.bpm.container.impl.spi.PlatformServiceContainer) JmxManagedProcessApplication(org.camunda.bpm.container.impl.jmx.services.JmxManagedProcessApplication)

Aggregations

JmxManagedProcessApplication (org.camunda.bpm.container.impl.jmx.services.JmxManagedProcessApplication)6 PlatformServiceContainer (org.camunda.bpm.container.impl.spi.PlatformServiceContainer)5 AbstractProcessApplication (org.camunda.bpm.application.AbstractProcessApplication)4 ProcessesXml (org.camunda.bpm.application.impl.metadata.spi.ProcessesXml)3 DeployedProcessArchive (org.camunda.bpm.container.impl.deployment.util.DeployedProcessArchive)2 URL (java.net.URL)1 HashSet (java.util.HashSet)1 ProcessApplicationInfoImpl (org.camunda.bpm.application.impl.ProcessApplicationInfoImpl)1 ProcessArchiveXml (org.camunda.bpm.application.impl.metadata.spi.ProcessArchiveXml)1