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
FieldsModifier and TypeFieldDescriptionprotected org.jboss.msc.service.ServiceTargetprotected Set<MscManagedProcessApplication>protected ServiceTracker<MscManagedProcessApplication>protected Set<ProcessEngine>protected ServiceTracker<ProcessEngine>protected Consumer<RuntimeContainerDelegate>protected org.jboss.msc.service.ServiceContainerFields inherited from interface org.camunda.bpm.container.RuntimeContainerDelegate
INSTANCEFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public MscRuntimeContainerDelegate getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<MscRuntimeContainerDelegate>- Throws:
IllegalStateExceptionIllegalArgumentException
-
registerProcessEngine
Description copied from interface:RuntimeContainerDelegateAdds a managed
ProcessEngineto the runtime container.Process Engines registered through this method are returned by the
ProcessEngineService.- Specified by:
registerProcessEnginein interfaceRuntimeContainerDelegate
-
unregisterProcessEngine
Description copied from interface:RuntimeContainerDelegateUnregisters a managed
ProcessEngineinstance from the Runtime Container.- Specified by:
unregisterProcessEnginein interfaceRuntimeContainerDelegate
-
deployProcessApplication
Description copied from interface:RuntimeContainerDelegateDeploy aAbstractProcessApplicationinto the runtime container.- Specified by:
deployProcessApplicationin interfaceRuntimeContainerDelegate
-
deployServletProcessApplication
-
undeployProcessApplication
Description copied from interface:RuntimeContainerDelegateUndeploy aAbstractProcessApplicationfrom the runtime container.- Specified by:
undeployProcessApplicationin interfaceRuntimeContainerDelegate
-
getProcessEngineService
- Specified by:
getProcessEngineServicein interfaceRuntimeContainerDelegate- Returns:
- the Container's
ProcessEngineServiceimplementation.
-
getProcessApplicationService
- Specified by:
getProcessApplicationServicein interfaceRuntimeContainerDelegate- Returns:
- the Container's
ProcessApplicationServiceimplementation
-
getExecutorService
- Specified by:
getExecutorServicein interfaceRuntimeContainerDelegate- Returns:
- the Runtime Container's
ExecutorServiceimplementation
-
getDefaultProcessEngine
- Specified by:
getDefaultProcessEnginein interfaceProcessEngineService- Returns:
- the default process engine.
-
getProcessEngines
- Specified by:
getProcessEnginesin interfaceProcessEngineService- Returns:
- all
ProcessEnginesmanaged by the Camunda Platform.
-
getProcessEngineNames
- Specified by:
getProcessEngineNamesin interfaceProcessEngineService- Returns:
- the names of all
ProcessEnginesmanaged by the Camunda Platform.
-
getProcessEngine
- Specified by:
getProcessEnginein interfaceProcessEngineService- Returns:
- the
ProcessEnginefor the given name or null if no such process engine exists.
-
getProcessApplicationInfo
Description copied from interface:ProcessApplicationServiceProvides information about a deployed process application
- Specified by:
getProcessApplicationInfoin interfaceProcessApplicationService- Returns:
- the
ProcessApplicationInfoobject or null if no such process application is deployed.
-
getProcessApplicationNames
- Specified by:
getProcessApplicationNamesin interfaceProcessApplicationService
-
getDeployedProcessApplication
- Specified by:
getDeployedProcessApplicationin 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
MscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is started -
processEngineStopped
invoked by the
MscManagedProcessEngineandMscManagedProcessEngineControllerwhen a process engine is stopped -
getManagedProcessApplication
-