Search in sources :

Example 1 with JmxManagedBpmPlatformPlugins

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

the class NotifyPostProcessApplicationUndeployedStep method performOperationStep.

@Override
public void performOperationStep(DeploymentOperation operationContext) {
    final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);
    final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
    final JmxManagedBpmPlatformPlugins plugins = serviceContainer.getService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS);
    if (plugins != null) {
        for (BpmPlatformPlugin plugin : plugins.getValue().getPlugins()) {
            plugin.postProcessApplicationUndeploy(processApplication);
        }
    }
}
Also used : BpmPlatformPlugin(org.camunda.bpm.container.impl.plugin.BpmPlatformPlugin) AbstractProcessApplication(org.camunda.bpm.application.AbstractProcessApplication) JmxManagedBpmPlatformPlugins(org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins) PlatformServiceContainer(org.camunda.bpm.container.impl.spi.PlatformServiceContainer)

Example 2 with JmxManagedBpmPlatformPlugins

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

the class DiscoverBpmPlatformPluginsStep method performOperationStep.

@Override
public void performOperationStep(DeploymentOperation operationContext) {
    PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
    BpmPlatformPlugins plugins = BpmPlatformPlugins.load(getPluginsClassloader());
    JmxManagedBpmPlatformPlugins jmxManagedPlugins = new JmxManagedBpmPlatformPlugins(plugins);
    serviceContainer.startService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS, jmxManagedPlugins);
}
Also used : JmxManagedBpmPlatformPlugins(org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins) BpmPlatformPlugins(org.camunda.bpm.container.impl.plugin.BpmPlatformPlugins) JmxManagedBpmPlatformPlugins(org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins) PlatformServiceContainer(org.camunda.bpm.container.impl.spi.PlatformServiceContainer)

Aggregations

JmxManagedBpmPlatformPlugins (org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins)2 PlatformServiceContainer (org.camunda.bpm.container.impl.spi.PlatformServiceContainer)2 AbstractProcessApplication (org.camunda.bpm.application.AbstractProcessApplication)1 BpmPlatformPlugin (org.camunda.bpm.container.impl.plugin.BpmPlatformPlugin)1 BpmPlatformPlugins (org.camunda.bpm.container.impl.plugin.BpmPlatformPlugins)1