public class MscRuntimeContainerDelegate extends Object implements org.jboss.msc.service.Service<MscRuntimeContainerDelegate>, RuntimeContainerDelegate, ProcessEngineService, ProcessApplicationService
A RuntimeContainerDelegate
implementation for JBoss AS 7
RuntimeContainerDelegate.RuntimeContainerDelegateInstance
Modifier and Type | Field and Description |
---|---|
protected org.jboss.msc.service.ServiceTarget |
childTarget |
protected Set<MscManagedProcessApplication> |
processApplications |
protected ServiceTracker<MscManagedProcessApplication> |
processApplicationServiceTracker |
protected Set<ProcessEngine> |
processEngines |
protected ServiceTracker<ProcessEngine> |
processEngineServiceTracker |
protected org.jboss.msc.service.ServiceContainer |
serviceContainer |
INSTANCE
Constructor and Description |
---|
MscRuntimeContainerDelegate() |
protected org.jboss.msc.service.ServiceTarget childTarget
protected org.jboss.msc.service.ServiceContainer serviceContainer
protected ServiceTracker<ProcessEngine> processEngineServiceTracker
protected Set<ProcessEngine> processEngines
protected ServiceTracker<MscManagedProcessApplication> processApplicationServiceTracker
protected Set<MscManagedProcessApplication> processApplications
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<MscRuntimeContainerDelegate>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<MscRuntimeContainerDelegate>
public MscRuntimeContainerDelegate getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<MscRuntimeContainerDelegate>
IllegalStateException
IllegalArgumentException
public void registerProcessEngine(ProcessEngine processEngine)
RuntimeContainerDelegate
Adds a managed ProcessEngine
to the runtime container.
Process Engines registered through this method are returned by the ProcessEngineService
.
registerProcessEngine
in interface RuntimeContainerDelegate
public void unregisterProcessEngine(ProcessEngine processEngine)
RuntimeContainerDelegate
Unregisters a managed ProcessEngine
instance from the Runtime Container.
unregisterProcessEngine
in interface RuntimeContainerDelegate
public void deployProcessApplication(AbstractProcessApplication processApplication)
RuntimeContainerDelegate
AbstractProcessApplication
into the runtime container.deployProcessApplication
in interface RuntimeContainerDelegate
protected void deployServletProcessApplication(ServletProcessApplication processApplication)
public void undeployProcessApplication(AbstractProcessApplication processApplication)
RuntimeContainerDelegate
AbstractProcessApplication
from the runtime container.undeployProcessApplication
in interface RuntimeContainerDelegate
public ProcessEngineService getProcessEngineService()
getProcessEngineService
in interface RuntimeContainerDelegate
ProcessEngineService
implementation.public ProcessApplicationService getProcessApplicationService()
getProcessApplicationService
in interface RuntimeContainerDelegate
ProcessApplicationService
implementationpublic ExecutorService getExecutorService()
getExecutorService
in interface RuntimeContainerDelegate
ExecutorService
implementationpublic ProcessEngine getDefaultProcessEngine()
getDefaultProcessEngine
in interface ProcessEngineService
public List<ProcessEngine> getProcessEngines()
getProcessEngines
in interface ProcessEngineService
ProcessEngines
managed by the camunda BPM platform.public Set<String> getProcessEngineNames()
getProcessEngineNames
in interface ProcessEngineService
ProcessEngines
managed by the camunda BPM platform.public ProcessEngine getProcessEngine(String name)
getProcessEngine
in interface ProcessEngineService
ProcessEngine
for the given name or null if no such process engine exists.public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName)
ProcessApplicationService
Provides information about a deployed process application
getProcessApplicationInfo
in interface ProcessApplicationService
ProcessApplicationInfo
object or null if no such process application is deployed.public Set<String> getProcessApplicationNames()
getProcessApplicationNames
in interface ProcessApplicationService
public ProcessApplicationReference getDeployedProcessApplication(String name)
getDeployedProcessApplication
in interface RuntimeContainerDelegate
protected void createProcessEngineServiceJndiBindings()
protected void createJndiBindings()
protected ProcessEngine getProcessEngineService(org.jboss.msc.service.ServiceName processEngineServiceName)
protected org.jboss.msc.service.ServiceController<ProcessEngine> getProcessEngineServiceController(org.jboss.msc.service.ServiceName processEngineServiceName)
protected void startTrackingServices()
protected void stopTrackingServices()
public void processEngineStarted(ProcessEngine processEngine)
invoked by the MscManagedProcessEngine
and MscManagedProcessEngineController
when a process engine is started
public void processEngineStopped(ProcessEngine processEngine)
invoked by the MscManagedProcessEngine
and MscManagedProcessEngineController
when a process engine is stopped
protected MscManagedProcessApplication getManagedProcessApplication(String name)
Copyright © 2019. All rights reserved.