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
Modifier and TypeFieldDescriptionprotected ThreadLocal<Stack<DeploymentOperation>>
set if the current thread is performing a composite deployment operationprotected MBeanServer
static final String
protected Map<ObjectName,
PlatformService<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
composeLocalName
(PlatformServiceContainer.ServiceType type, String localName) protected MBeanServer
void
executeDeploymentOperation
(DeploymentOperation operation) static ObjectName
getObjectName
(String serviceName) <S> S
getService
(ObjectName name) get a specific service by name or null if no such Service exists.<S> S
getService
(PlatformServiceContainer.ServiceType type, String localName) get a specific service by name or null if no such Service exists.<S> List<PlatformService<S>>
<S> S
getServiceValue
(ObjectName name) get the service value for a specific service by name or null if no such Service exists.<S> S
getServiceValue
(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>
void
setmBeanServer
(MBeanServer mBeanServer) <S> void
startService
(String name, PlatformService<S> service) <S> void
startService
(PlatformServiceContainer.ServiceType serviceType, String localName, PlatformService<S> service) void
stopService
(String name) void
stopService
(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:
startService
in interfacePlatformServiceContainer
-
startService
- Specified by:
startService
in interfacePlatformServiceContainer
-
getObjectName
-
composeLocalName
-
stopService
- Specified by:
stopService
in interfacePlatformServiceContainer
-
stopService
- Specified by:
stopService
in interfacePlatformServiceContainer
-
createDeploymentOperation
- Specified by:
createDeploymentOperation
in interfacePlatformServiceContainer
-
createUndeploymentOperation
- Specified by:
createUndeploymentOperation
in interfacePlatformServiceContainer
-
executeDeploymentOperation
- Specified by:
executeDeploymentOperation
in interfacePlatformServiceContainer
-
getService
get a specific service by name or null if no such Service exists.- Specified by:
getService
in 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:
getServiceValue
in interfacePlatformServiceContainer
-
getServicesByType
- Specified by:
getServicesByType
in interfacePlatformServiceContainer
- Returns:
- all services for a specific
PlatformServiceContainer.ServiceType
-
getServiceNames
- Specified by:
getServiceNames
in interfacePlatformServiceContainer
- Returns:
- the service names (
ObjectName
) for all services for a given type
-
getServiceValuesByType
- Specified by:
getServiceValuesByType
in interfacePlatformServiceContainer
- Returns:
- the values of all services for a specific
PlatformServiceContainer.ServiceType
-
getmBeanServer
-
setmBeanServer
-
createOrLookupMbeanServer
-