Class MscManagedProcessEngineController
- java.lang.Object
-
- org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngine
-
- org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController
-
- All Implemented Interfaces:
org.jboss.msc.Service
,org.jboss.msc.service.Service<ProcessEngine>
,org.jboss.msc.value.Value<ProcessEngine>
public class MscManagedProcessEngineController extends MscManagedProcessEngine
Service responsible for starting / stopping a managed process engine inside the Msc
This service is used for managing process engines that are started / stopped through the application server management infrastructure.
This is the Msc counterpart of the
JmxManagedProcessEngineController
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CONNECT_PROCESS_ENGINE_PLUGIN_NAME
protected org.jboss.msc.value.InjectedValue<org.jboss.as.connector.subsystems.datasources.DataSourceReferenceFactoryService>
datasourceBinderServiceInjector
protected org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService>
executorInjector
protected org.jboss.msc.value.InjectedValue<MscRuntimeContainerJobExecutor>
mscRuntimeContainerJobExecutorInjector
protected JakartaTransactionProcessEngineConfiguration
processEngineConfiguration
protected ManagedProcessEngineMetadata
processEngineMetadata
protected org.jboss.msc.value.InjectedValue<jakarta.transaction.TransactionManager>
transactionManagerInjector
-
Fields inherited from class org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngine
processEngine, runtimeContainerDelegateInjector
-
-
Constructor Summary
Constructors Constructor Description MscManagedProcessEngineController(ManagedProcessEngineMetadata processEngineConfiguration)
Instantiate the process engine controller for a process engine configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProcessEnginePlugins(JakartaTransactionProcessEngineConfiguration processEngineConfiguration)
protected JakartaTransactionProcessEngineConfiguration
createProcessEngineConfiguration()
org.jboss.msc.inject.Injector<org.jboss.as.connector.subsystems.datasources.DataSourceReferenceFactoryService>
getDatasourceBinderServiceInjector()
org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService>
getExecutorInjector()
org.jboss.msc.value.InjectedValue<MscRuntimeContainerJobExecutor>
getMscRuntimeContainerJobExecutorInjector()
ProcessEngine
getProcessEngine()
ManagedProcessEngineMetadata
getProcessEngineMetadata()
org.jboss.msc.inject.Injector<jakarta.transaction.TransactionManager>
getTransactionManagerInjector()
static void
initializeServiceBuilder(ManagedProcessEngineMetadata processEngineConfiguration, MscManagedProcessEngineController service, org.jboss.msc.service.ServiceBuilder<ProcessEngine> serviceBuilder, java.lang.String jobExecutorName)
void
start(org.jboss.msc.service.StartContext context)
void
startInternal(org.jboss.msc.service.StartContext context)
protected void
startProcessEngine()
void
stop(org.jboss.msc.service.StopContext context)
protected void
stopInternal(org.jboss.msc.service.StopContext context)
-
Methods inherited from class org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngine
createProcessEngineJndiBinding, getRuntimeContainerDelegateInjector, getValue, removeProcessEngineJndiBinding
-
-
-
-
Field Detail
-
CONNECT_PROCESS_ENGINE_PLUGIN_NAME
protected static final java.lang.String CONNECT_PROCESS_ENGINE_PLUGIN_NAME
- See Also:
- Constant Field Values
-
executorInjector
protected org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> executorInjector
-
transactionManagerInjector
protected final org.jboss.msc.value.InjectedValue<jakarta.transaction.TransactionManager> transactionManagerInjector
-
datasourceBinderServiceInjector
protected final org.jboss.msc.value.InjectedValue<org.jboss.as.connector.subsystems.datasources.DataSourceReferenceFactoryService> datasourceBinderServiceInjector
-
mscRuntimeContainerJobExecutorInjector
protected final org.jboss.msc.value.InjectedValue<MscRuntimeContainerJobExecutor> mscRuntimeContainerJobExecutorInjector
-
processEngineMetadata
protected ManagedProcessEngineMetadata processEngineMetadata
-
processEngineConfiguration
protected JakartaTransactionProcessEngineConfiguration processEngineConfiguration
-
-
Constructor Detail
-
MscManagedProcessEngineController
public MscManagedProcessEngineController(ManagedProcessEngineMetadata processEngineConfiguration)
Instantiate the process engine controller for a process engine configuration.
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
- Specified by:
start
in interfaceorg.jboss.msc.Service
- Specified by:
start
in interfaceorg.jboss.msc.service.Service<ProcessEngine>
- Overrides:
start
in classMscManagedProcessEngine
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
- Specified by:
stop
in interfaceorg.jboss.msc.service.Service<ProcessEngine>
- Overrides:
stop
in classMscManagedProcessEngine
-
stopInternal
protected void stopInternal(org.jboss.msc.service.StopContext context)
-
startInternal
public void startInternal(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
- Throws:
org.jboss.msc.service.StartException
-
startProcessEngine
protected void startProcessEngine()
-
addProcessEnginePlugins
protected void addProcessEnginePlugins(JakartaTransactionProcessEngineConfiguration processEngineConfiguration)
-
createProcessEngineConfiguration
protected JakartaTransactionProcessEngineConfiguration createProcessEngineConfiguration()
-
getTransactionManagerInjector
public org.jboss.msc.inject.Injector<jakarta.transaction.TransactionManager> getTransactionManagerInjector()
-
getDatasourceBinderServiceInjector
public org.jboss.msc.inject.Injector<org.jboss.as.connector.subsystems.datasources.DataSourceReferenceFactoryService> getDatasourceBinderServiceInjector()
-
getMscRuntimeContainerJobExecutorInjector
public org.jboss.msc.value.InjectedValue<MscRuntimeContainerJobExecutor> getMscRuntimeContainerJobExecutorInjector()
-
initializeServiceBuilder
public static void initializeServiceBuilder(ManagedProcessEngineMetadata processEngineConfiguration, MscManagedProcessEngineController service, org.jboss.msc.service.ServiceBuilder<ProcessEngine> serviceBuilder, java.lang.String jobExecutorName)
-
getProcessEngine
public ProcessEngine getProcessEngine()
-
getExecutorInjector
public org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> getExecutorInjector()
-
getProcessEngineMetadata
public ManagedProcessEngineMetadata getProcessEngineMetadata()
-
-