org.camunda.bpm.container.impl
Class RuntimeContainerDelegateImpl

java.lang.Object
  extended by org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl
All Implemented Interfaces:
RuntimeContainerDelegate, ProcessApplicationService, ProcessEngineService

public class RuntimeContainerDelegateImpl
extends Object
implements RuntimeContainerDelegate, ProcessEngineService, ProcessApplicationService

This is the default RuntimeContainerDelegate implementation that delegates to the local MBeanServer infrastructure. The MBeanServer is available as per the Java Virtual Machine and allows the process engine to expose Management Resources.

Author:
Daniel Meyer

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
RuntimeContainerDelegate.RuntimeContainerDelegateInstance
 
Field Summary
protected static ContainerIntegrationLogger LOG
           
static String SERVICE_NAME_EXECUTOR
           
static String SERVICE_NAME_PLATFORM_PLUGINS
           
protected  MBeanServiceContainer serviceContainer
           
 
Fields inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
INSTANCE
 
Constructor Summary
RuntimeContainerDelegateImpl()
           
 
Method Summary
 void deployProcessApplication(AbstractProcessApplication processApplication)
          Deploy a AbstractProcessApplication into the runtime container.
 ProcessEngine getDefaultProcessEngine()
           
 ProcessApplicationReference getDeployedProcessApplication(String processApplicationName)
           
protected  List<DeploymentOperationStep> getDeploymentSteps()
           
 ExecutorService getExecutorService()
           
 ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName)
          Provides information about a deployed process application
 Set<String> getProcessApplicationNames()
           
 ProcessApplicationService getProcessApplicationService()
           
 ProcessEngine getProcessEngine(String name)
           
 Set<String> getProcessEngineNames()
           
 List<ProcessEngine> getProcessEngines()
           
 ProcessEngineService getProcessEngineService()
           
 PlatformServiceContainer getServiceContainer()
           
protected  List<DeploymentOperationStep> getUndeploymentSteps()
           
 void registerProcessEngine(ProcessEngine processEngine)
          Adds a managed ProcessEngine to the runtime container.
 void undeployProcessApplication(AbstractProcessApplication processApplication)
          Undeploy a AbstractProcessApplication from the runtime container.
 void unregisterProcessEngine(ProcessEngine processEngine)
          Unregisters a managed ProcessEngine instance from the Runtime Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final ContainerIntegrationLogger LOG

serviceContainer

protected MBeanServiceContainer serviceContainer

SERVICE_NAME_EXECUTOR

public static final String SERVICE_NAME_EXECUTOR
See Also:
Constant Field Values

SERVICE_NAME_PLATFORM_PLUGINS

public static final String SERVICE_NAME_PLATFORM_PLUGINS
See Also:
Constant Field Values
Constructor Detail

RuntimeContainerDelegateImpl

public RuntimeContainerDelegateImpl()
Method Detail

registerProcessEngine

public void registerProcessEngine(ProcessEngine processEngine)
Description copied from interface: RuntimeContainerDelegate

Adds a managed ProcessEngine to the runtime container.

Process Engines registered through this method are returned by the ProcessEngineService.

Specified by:
registerProcessEngine in interface RuntimeContainerDelegate

unregisterProcessEngine

public void unregisterProcessEngine(ProcessEngine processEngine)
Description copied from interface: RuntimeContainerDelegate

Unregisters a managed ProcessEngine instance from the Runtime Container.

Specified by:
unregisterProcessEngine in interface RuntimeContainerDelegate

deployProcessApplication

public void deployProcessApplication(AbstractProcessApplication processApplication)
Description copied from interface: RuntimeContainerDelegate
Deploy a AbstractProcessApplication into the runtime container.

Specified by:
deployProcessApplication in interface RuntimeContainerDelegate

undeployProcessApplication

public void undeployProcessApplication(AbstractProcessApplication processApplication)
Description copied from interface: RuntimeContainerDelegate
Undeploy a AbstractProcessApplication from the runtime container.

Specified by:
undeployProcessApplication in interface RuntimeContainerDelegate

getDeploymentSteps

protected List<DeploymentOperationStep> getDeploymentSteps()

getUndeploymentSteps

protected List<DeploymentOperationStep> getUndeploymentSteps()

getProcessEngineService

public ProcessEngineService getProcessEngineService()
Specified by:
getProcessEngineService in interface RuntimeContainerDelegate
Returns:
the Container's ProcessEngineService implementation.

getProcessApplicationService

public ProcessApplicationService getProcessApplicationService()
Specified by:
getProcessApplicationService in interface RuntimeContainerDelegate
Returns:
the Container's ProcessApplicationService implementation

getExecutorService

public ExecutorService getExecutorService()
Specified by:
getExecutorService in interface RuntimeContainerDelegate
Returns:
the Runtime Container's ExecutorService implementation

getDefaultProcessEngine

public ProcessEngine getDefaultProcessEngine()
Specified by:
getDefaultProcessEngine in interface ProcessEngineService
Returns:
the default process engine.

getProcessEngine

public ProcessEngine getProcessEngine(String name)
Specified by:
getProcessEngine in interface ProcessEngineService
Returns:
the ProcessEngine for the given name or null if no such process engine exists.

getProcessEngines

public List<ProcessEngine> getProcessEngines()
Specified by:
getProcessEngines in interface ProcessEngineService
Returns:
all ProcessEngines managed by the camunda BPM platform.

getProcessEngineNames

public Set<String> getProcessEngineNames()
Specified by:
getProcessEngineNames in interface ProcessEngineService
Returns:
the names of all ProcessEngines managed by the camunda BPM platform.

getProcessApplicationNames

public Set<String> getProcessApplicationNames()
Specified by:
getProcessApplicationNames in interface ProcessApplicationService

getProcessApplicationInfo

public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName)
Description copied from interface: ProcessApplicationService

Provides information about a deployed process application

Specified by:
getProcessApplicationInfo in interface ProcessApplicationService
Returns:
the ProcessApplicationInfo object or null if no such process application is deployed.

getDeployedProcessApplication

public ProcessApplicationReference getDeployedProcessApplication(String processApplicationName)
Specified by:
getDeployedProcessApplication in interface RuntimeContainerDelegate
Returns:
a reference to the process application with the given name if deployed; null otherwise

getServiceContainer

public PlatformServiceContainer getServiceContainer()


Copyright © 2018 camunda services GmbH. All rights reserved.