Class MBeanServiceContainer
java.lang.Object
org.camunda.bpm.container.impl.jmx.MBeanServiceContainer
- All Implemented Interfaces:
PlatformServiceContainer
A simple Service Container that delegates to the JVM's MBeanServer.
- Author:
- Daniel Meyer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.camunda.bpm.container.impl.spi.PlatformServiceContainer
PlatformServiceContainer.ServiceType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ThreadLocal<Stack<DeploymentOperation>>set if the current thread is performing a composite deployment operationprotected MBeanServerstatic final Stringprotected Map<ObjectName,PlatformService<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomposeLocalName(PlatformServiceContainer.ServiceType type, String localName) protected MBeanServervoidexecuteDeploymentOperation(DeploymentOperation operation) static ObjectNamegetObjectName(String serviceName) <S> SgetService(ObjectName name) get a specific service by name or null if no such Service exists.<S> SgetService(PlatformServiceContainer.ServiceType type, String localName) get a specific service by name or null if no such Service exists.<S> List<PlatformService<S>><S> SgetServiceValue(ObjectName name) get the service value for a specific service by name or null if no such Service exists.<S> SgetServiceValue(PlatformServiceContainer.ServiceType type, String localName) get the service value for a specific service by name or null if no such Service exists.<S> List<S>voidsetmBeanServer(MBeanServer mBeanServer) <S> voidstartService(String name, PlatformService<S> service) <S> voidstartService(PlatformServiceContainer.ServiceType serviceType, String localName, PlatformService<S> service) voidstopService(String name) voidstopService(PlatformServiceContainer.ServiceType serviceType, String localName)
-
Field Details
-
mBeanServer
-
servicesByName
-
activeDeploymentOperations
set if the current thread is performing a composite deployment operation -
SERVICE_NAME_EXECUTOR
- See Also:
-
-
Constructor Details
-
MBeanServiceContainer
public MBeanServiceContainer()
-
-
Method Details
-
startService
public <S> void startService(PlatformServiceContainer.ServiceType serviceType, String localName, PlatformService<S> service) - Specified by:
startServicein interfacePlatformServiceContainer
-
startService
- Specified by:
startServicein interfacePlatformServiceContainer
-
getObjectName
-
composeLocalName
-
stopService
- Specified by:
stopServicein interfacePlatformServiceContainer
-
stopService
- Specified by:
stopServicein interfacePlatformServiceContainer
-
createDeploymentOperation
- Specified by:
createDeploymentOperationin interfacePlatformServiceContainer
-
createUndeploymentOperation
- Specified by:
createUndeploymentOperationin interfacePlatformServiceContainer
-
executeDeploymentOperation
- Specified by:
executeDeploymentOperationin interfacePlatformServiceContainer
-
getService
get a specific service by name or null if no such Service exists.- Specified by:
getServicein interfacePlatformServiceContainer
-
getService
get a specific service by name or null if no such Service exists. -
getServiceValue
get the service value for a specific service by name or null if no such Service exists. -
getServiceValue
get the service value for a specific service by name or null if no such Service exists.- Specified by:
getServiceValuein interfacePlatformServiceContainer
-
getServicesByType
- Specified by:
getServicesByTypein interfacePlatformServiceContainer- Returns:
- all services for a specific
PlatformServiceContainer.ServiceType
-
getServiceNames
- Specified by:
getServiceNamesin interfacePlatformServiceContainer- Returns:
- the service names (
ObjectName) for all services for a given type
-
getServiceValuesByType
- Specified by:
getServiceValuesByTypein interfacePlatformServiceContainer- Returns:
- the values of all services for a specific
PlatformServiceContainer.ServiceType
-
getmBeanServer
-
setmBeanServer
-
createOrLookupMbeanServer
-