Class MscRuntimeContainerDelegate
java.lang.Object
org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate
- All Implemented Interfaces:
RuntimeContainerDelegate
,ProcessApplicationService
,ProcessEngineService
,org.jboss.msc.Service
,org.jboss.msc.service.Service<MscRuntimeContainerDelegate>
,org.jboss.msc.value.Value<MscRuntimeContainerDelegate>
public class MscRuntimeContainerDelegate
extends Object
implements org.jboss.msc.service.Service<MscRuntimeContainerDelegate>, RuntimeContainerDelegate, ProcessEngineService, ProcessApplicationService
A RuntimeContainerDelegate
implementation for JBoss AS 7
- Author:
- Daniel Meyer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
RuntimeContainerDelegate.RuntimeContainerDelegateInstance
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.jboss.msc.service.ServiceTarget
protected Set<MscManagedProcessApplication>
protected ServiceTracker<MscManagedProcessApplication>
protected Set<ProcessEngine>
protected ServiceTracker<ProcessEngine>
protected Consumer<RuntimeContainerDelegate>
protected org.jboss.msc.service.ServiceContainer
Fields inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
INSTANCE
Fields inherited from interface org.jboss.msc.service.Service
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
deployProcessApplication
(AbstractProcessApplication processApplication) Deploy aAbstractProcessApplication
into the runtime container.protected void
deployServletProcessApplication
(JakartaServletProcessApplication processApplication) protected MscManagedProcessApplication
getProcessApplicationInfo
(String processApplicationName) Provides information about a deployed process applicationgetProcessEngine
(String name) protected ProcessEngine
getProcessEngineService
(org.jboss.msc.service.ServiceName processEngineServiceName) protected org.jboss.msc.service.ServiceController<ProcessEngine>
getProcessEngineServiceController
(org.jboss.msc.service.ServiceName processEngineServiceName) getValue()
void
processEngineStarted
(ProcessEngine processEngine) invoked by theMscManagedProcessEngine
andMscManagedProcessEngineController
when a process engine is startedvoid
processEngineStopped
(ProcessEngine processEngine) invoked by theMscManagedProcessEngine
andMscManagedProcessEngineController
when a process engine is stoppedvoid
registerProcessEngine
(ProcessEngine processEngine) Adds a managedProcessEngine
to the runtime container.void
start
(org.jboss.msc.service.StartContext context) protected void
void
stop
(org.jboss.msc.service.StopContext context) protected void
void
undeployProcessApplication
(AbstractProcessApplication processApplication) Undeploy aAbstractProcessApplication
from the runtime container.void
unregisterProcessEngine
(ProcessEngine processEngine) Unregisters a managedProcessEngine
instance from the Runtime Container.
-
Field Details
-
childTarget
protected org.jboss.msc.service.ServiceTarget childTarget -
serviceContainer
protected org.jboss.msc.service.ServiceContainer serviceContainer -
processEngineServiceTracker
-
processEngines
-
processApplicationServiceTracker
-
processApplications
-
provider
-
-
Constructor Details
-
MscRuntimeContainerDelegate
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public MscRuntimeContainerDelegate getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValue
in interfaceorg.jboss.msc.value.Value<MscRuntimeContainerDelegate>
- Throws:
IllegalStateException
IllegalArgumentException
-
registerProcessEngine
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
Description copied from interface:RuntimeContainerDelegate
Unregisters a managed
ProcessEngine
instance from the Runtime Container.- Specified by:
unregisterProcessEngine
in interfaceRuntimeContainerDelegate
-
deployProcessApplication
Description copied from interface:RuntimeContainerDelegate
Deploy aAbstractProcessApplication
into the runtime container.- Specified by:
deployProcessApplication
in interfaceRuntimeContainerDelegate
-
deployServletProcessApplication
-
undeployProcessApplication
Description copied from interface:RuntimeContainerDelegate
Undeploy aAbstractProcessApplication
from the runtime container.- Specified by:
undeployProcessApplication
in interfaceRuntimeContainerDelegate
-
getProcessEngineService
- Specified by:
getProcessEngineService
in interfaceRuntimeContainerDelegate
- Returns:
- the Container's
ProcessEngineService
implementation.
-
getProcessApplicationService
- Specified by:
getProcessApplicationService
in interfaceRuntimeContainerDelegate
- Returns:
- the Container's
ProcessApplicationService
implementation
-
getExecutorService
- Specified by:
getExecutorService
in interfaceRuntimeContainerDelegate
- Returns:
- the Runtime Container's
ExecutorService
implementation
-
getDefaultProcessEngine
- Specified by:
getDefaultProcessEngine
in interfaceProcessEngineService
- Returns:
- the default process engine.
-
getProcessEngines
- Specified by:
getProcessEngines
in interfaceProcessEngineService
- Returns:
- all
ProcessEngines
managed by the Camunda Platform.
-
getProcessEngineNames
- Specified by:
getProcessEngineNames
in interfaceProcessEngineService
- Returns:
- the names of all
ProcessEngines
managed by the Camunda Platform.
-
getProcessEngine
- Specified by:
getProcessEngine
in interfaceProcessEngineService
- Returns:
- the
ProcessEngine
for the given name or null if no such process engine exists.
-
getProcessApplicationInfo
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.
-
getProcessApplicationNames
- Specified by:
getProcessApplicationNames
in interfaceProcessApplicationService
- Returns:
- the names of all deployed process applications
-
getDeployedProcessApplication
- Specified by:
getDeployedProcessApplication
in interfaceRuntimeContainerDelegate
- Returns:
- a reference to the process application with the given name if deployed; null otherwise
-
createJndiBindings
protected void createJndiBindings() -
getProcessEngineService
protected ProcessEngine getProcessEngineService(org.jboss.msc.service.ServiceName processEngineServiceName) -
getProcessEngineServiceController
protected org.jboss.msc.service.ServiceController<ProcessEngine> getProcessEngineServiceController(org.jboss.msc.service.ServiceName processEngineServiceName) -
startTrackingServices
protected void startTrackingServices() -
stopTrackingServices
protected void stopTrackingServices() -
processEngineStarted
invoked by the
MscManagedProcessEngine
andMscManagedProcessEngineController
when a process engine is started -
processEngineStopped
invoked by the
MscManagedProcessEngine
andMscManagedProcessEngineController
when a process engine is stopped -
getManagedProcessApplication
-