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 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 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
Constructors Constructor Description RuntimeContainerDelegateImpl()
-
Method Summary
-
-
-
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
-
-
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 List<DeploymentOperationStep> getDeploymentSteps()
-
getUndeploymentSteps
protected 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(String name)
- Specified by:
getProcessEngine
in interfaceProcessEngineService
- Returns:
- the
ProcessEngine
for the given name or null if no such process engine exists.
-
getProcessEngines
public List<ProcessEngine> getProcessEngines()
- Specified by:
getProcessEngines
in interfaceProcessEngineService
- Returns:
- all
ProcessEngines
managed by the Camunda Platform.
-
getProcessEngineNames
public Set<String> getProcessEngineNames()
- Specified by:
getProcessEngineNames
in interfaceProcessEngineService
- Returns:
- the names of all
ProcessEngines
managed by the Camunda Platform.
-
getProcessApplicationNames
public Set<String> getProcessApplicationNames()
- Specified by:
getProcessApplicationNames
in interfaceProcessApplicationService
-
getProcessApplicationInfo
public ProcessApplicationInfo getProcessApplicationInfo(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(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()
-
-