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 SummaryNested classes/interfaces inherited from interface org.camunda.bpm.container.RuntimeContainerDelegateRuntimeContainerDelegate.RuntimeContainerDelegateInstance
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.jboss.msc.service.ServiceTargetprotected Set<MscManagedProcessApplication>protected ServiceTracker<MscManagedProcessApplication>protected Set<ProcessEngine>protected ServiceTracker<ProcessEngine>protected org.jboss.msc.service.ServiceContainerFields inherited from interface org.camunda.bpm.container.RuntimeContainerDelegateINSTANCEFields inherited from interface org.jboss.msc.service.ServiceNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidvoiddeployProcessApplication(AbstractProcessApplication processApplication) Deploy aAbstractProcessApplicationinto the runtime container.protected voiddeployServletProcessApplication(JakartaServletProcessApplication processApplication) protected MscManagedProcessApplicationgetProcessApplicationInfo(String processApplicationName) Provides information about a deployed process applicationgetProcessEngine(String name) protected ProcessEnginegetProcessEngineService(org.jboss.msc.service.ServiceName processEngineServiceName) protected org.jboss.msc.service.ServiceController<ProcessEngine>getProcessEngineServiceController(org.jboss.msc.service.ServiceName processEngineServiceName) getValue()voidprocessEngineStarted(ProcessEngine processEngine) invoked by theMscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is startedvoidprocessEngineStopped(ProcessEngine processEngine) invoked by theMscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is stoppedvoidregisterProcessEngine(ProcessEngine processEngine) Adds a managedProcessEngineto the runtime container.voidstart(org.jboss.msc.service.StartContext context) protected voidvoidstop(org.jboss.msc.service.StopContext context) protected voidvoidundeployProcessApplication(AbstractProcessApplication processApplication) Undeploy aAbstractProcessApplicationfrom the runtime container.voidunregisterProcessEngine(ProcessEngine processEngine) Unregisters a managedProcessEngineinstance from the Runtime Container.
- 
Field Details- 
childTargetprotected org.jboss.msc.service.ServiceTarget childTarget
- 
serviceContainerprotected org.jboss.msc.service.ServiceContainer serviceContainer
- 
processEngineServiceTracker
- 
processEngines
- 
processApplicationServiceTracker
- 
processApplications
 
- 
- 
Constructor Details- 
MscRuntimeContainerDelegatepublic MscRuntimeContainerDelegate()
 
- 
- 
Method Details- 
startpublic void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
- startin interface- org.jboss.msc.Service
- Throws:
- org.jboss.msc.service.StartException
 
- 
stoppublic void stop(org.jboss.msc.service.StopContext context) - Specified by:
- stopin interface- org.jboss.msc.Service
 
- 
getValuepublic MscRuntimeContainerDelegate getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
- getValuein interface- org.jboss.msc.value.Value<MscRuntimeContainerDelegate>
- Throws:
- IllegalStateException
- IllegalArgumentException
 
- 
registerProcessEngineDescription copied from interface:RuntimeContainerDelegateAdds a managed ProcessEngineto the runtime container.Process Engines registered through this method are returned by the ProcessEngineService.- Specified by:
- registerProcessEnginein interface- RuntimeContainerDelegate
 
- 
unregisterProcessEngineDescription copied from interface:RuntimeContainerDelegateUnregisters a managed ProcessEngineinstance from the Runtime Container.- Specified by:
- unregisterProcessEnginein interface- RuntimeContainerDelegate
 
- 
deployProcessApplicationDescription copied from interface:RuntimeContainerDelegateDeploy aAbstractProcessApplicationinto the runtime container.- Specified by:
- deployProcessApplicationin interface- RuntimeContainerDelegate
 
- 
deployServletProcessApplication
- 
undeployProcessApplicationDescription copied from interface:RuntimeContainerDelegateUndeploy aAbstractProcessApplicationfrom the runtime container.- Specified by:
- undeployProcessApplicationin interface- RuntimeContainerDelegate
 
- 
getProcessEngineService- Specified by:
- getProcessEngineServicein interface- RuntimeContainerDelegate
- Returns:
- the Container's ProcessEngineServiceimplementation.
 
- 
getProcessApplicationService- Specified by:
- getProcessApplicationServicein interface- RuntimeContainerDelegate
- Returns:
- the Container's ProcessApplicationServiceimplementation
 
- 
getExecutorService- Specified by:
- getExecutorServicein interface- RuntimeContainerDelegate
- Returns:
- the Runtime Container's ExecutorServiceimplementation
 
- 
getDefaultProcessEngine- Specified by:
- getDefaultProcessEnginein interface- ProcessEngineService
- Returns:
- the default process engine.
 
- 
getProcessEngines- Specified by:
- getProcessEnginesin interface- ProcessEngineService
- Returns:
- all ProcessEnginesmanaged by the Camunda Platform.
 
- 
getProcessEngineNames- Specified by:
- getProcessEngineNamesin interface- ProcessEngineService
- Returns:
- the names of all ProcessEnginesmanaged by the Camunda Platform.
 
- 
getProcessEngine- Specified by:
- getProcessEnginein interface- ProcessEngineService
- Returns:
- the ProcessEnginefor the given name or null if no such process engine exists.
 
- 
getProcessApplicationInfoDescription copied from interface:ProcessApplicationServiceProvides information about a deployed process application - Specified by:
- getProcessApplicationInfoin interface- ProcessApplicationService
- Returns:
- the ProcessApplicationInfoobject or null if no such process application is deployed.
 
- 
getProcessApplicationNames- Specified by:
- getProcessApplicationNamesin interface- ProcessApplicationService
 
- 
getDeployedProcessApplication- Specified by:
- getDeployedProcessApplicationin interface- RuntimeContainerDelegate
- Returns:
- a reference to the process application with the given name if deployed; null otherwise
 
- 
createProcessEngineServiceJndiBindingsprotected void createProcessEngineServiceJndiBindings()
- 
createJndiBindingsprotected void createJndiBindings()
- 
getProcessEngineServiceprotected ProcessEngine getProcessEngineService(org.jboss.msc.service.ServiceName processEngineServiceName) 
- 
getProcessEngineServiceControllerprotected org.jboss.msc.service.ServiceController<ProcessEngine> getProcessEngineServiceController(org.jboss.msc.service.ServiceName processEngineServiceName) 
- 
startTrackingServicesprotected void startTrackingServices()
- 
stopTrackingServicesprotected void stopTrackingServices()
- 
processEngineStartedinvoked by the MscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is started
- 
processEngineStoppedinvoked by the MscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is stopped
- 
getManagedProcessApplication
 
-