Package org.camunda.bpm.container.impl
Class RuntimeContainerDelegateImpl
- java.lang.Object
-
- org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl
-
- All Implemented Interfaces:
RuntimeContainerDelegate
,ProcessApplicationService
,ProcessEngineService
public class RuntimeContainerDelegateImpl extends java.lang.Object implements RuntimeContainerDelegate, ProcessEngineService, ProcessApplicationService
This is the default
RuntimeContainerDelegate
implementation that delegates to the localMBeanServer
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
Fields Modifier and Type Field Description protected static ContainerIntegrationLogger
LOG
static java.lang.String
SERVICE_NAME_EXECUTOR
static java.lang.String
SERVICE_NAME_PLATFORM_PLUGINS
protected MBeanServiceContainer
serviceContainer
-
Fields inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description RuntimeContainerDelegateImpl()
-
Method Summary
-
-
-
Field Detail
-
LOG
protected static final ContainerIntegrationLogger LOG
-
serviceContainer
protected MBeanServiceContainer serviceContainer
-
SERVICE_NAME_EXECUTOR
public static final java.lang.String SERVICE_NAME_EXECUTOR
- See Also:
- Constant Field Values
-
SERVICE_NAME_PLATFORM_PLUGINS
public static final java.lang.String SERVICE_NAME_PLATFORM_PLUGINS
- See Also:
- Constant Field Values
-
-
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 interfaceRuntimeContainerDelegate
-
unregisterProcessEngine
public void unregisterProcessEngine(ProcessEngine processEngine)
Description copied from interface:RuntimeContainerDelegate
Unregisters a managed
ProcessEngine
instance from the Runtime Container.- Specified by:
unregisterProcessEngine
in interfaceRuntimeContainerDelegate
-
deployProcessApplication
public void deployProcessApplication(AbstractProcessApplication processApplication)
Description copied from interface:RuntimeContainerDelegate
Deploy aAbstractProcessApplication
into the runtime container.- Specified by:
deployProcessApplication
in interfaceRuntimeContainerDelegate
-
undeployProcessApplication
public void undeployProcessApplication(AbstractProcessApplication processApplication)
Description copied from interface:RuntimeContainerDelegate
Undeploy aAbstractProcessApplication
from the runtime container.- Specified by:
undeployProcessApplication
in interfaceRuntimeContainerDelegate
-
getDeploymentSteps
protected java.util.List<DeploymentOperationStep> getDeploymentSteps()
-
getUndeploymentSteps
protected java.util.List<DeploymentOperationStep> getUndeploymentSteps()
-
getProcessEngineService
public ProcessEngineService getProcessEngineService()
- Specified by:
getProcessEngineService
in interfaceRuntimeContainerDelegate
- Returns:
- the Container's
ProcessEngineService
implementation.
-
getProcessApplicationService
public ProcessApplicationService getProcessApplicationService()
- Specified by:
getProcessApplicationService
in interfaceRuntimeContainerDelegate
- Returns:
- the Container's
ProcessApplicationService
implementation
-
getExecutorService
public ExecutorService getExecutorService()
- Specified by:
getExecutorService
in interfaceRuntimeContainerDelegate
- Returns:
- the Runtime Container's
ExecutorService
implementation
-
getDefaultProcessEngine
public ProcessEngine getDefaultProcessEngine()
- Specified by:
getDefaultProcessEngine
in interfaceProcessEngineService
- Returns:
- the default process engine.
-
getProcessEngine
public ProcessEngine getProcessEngine(java.lang.String name)
- Specified by:
getProcessEngine
in interfaceProcessEngineService
- Returns:
- the
ProcessEngine
for the given name or null if no such process engine exists.
-
getProcessEngines
public java.util.List<ProcessEngine> getProcessEngines()
- Specified by:
getProcessEngines
in interfaceProcessEngineService
- Returns:
- all
ProcessEngines
managed by the Camunda Platform.
-
getProcessEngineNames
public java.util.Set<java.lang.String> getProcessEngineNames()
- Specified by:
getProcessEngineNames
in interfaceProcessEngineService
- Returns:
- the names of all
ProcessEngines
managed by the Camunda Platform.
-
getProcessApplicationNames
public java.util.Set<java.lang.String> getProcessApplicationNames()
- Specified by:
getProcessApplicationNames
in interfaceProcessApplicationService
-
getProcessApplicationInfo
public ProcessApplicationInfo getProcessApplicationInfo(java.lang.String processApplicationName)
Description copied from interface:ProcessApplicationService
Provides information about a deployed process application
- Specified by:
getProcessApplicationInfo
in interfaceProcessApplicationService
- Returns:
- the
ProcessApplicationInfo
object or null if no such process application is deployed.
-
getDeployedProcessApplication
public ProcessApplicationReference getDeployedProcessApplication(java.lang.String processApplicationName)
- Specified by:
getDeployedProcessApplication
in interfaceRuntimeContainerDelegate
- Returns:
- a reference to the process application with the given name if deployed; null otherwise
-
getServiceContainer
public PlatformServiceContainer getServiceContainer()
-
-