Class ProcessApplicationDeploymentService
java.lang.Object
org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService
- All Implemented Interfaces:
- org.jboss.msc.Service,- org.jboss.msc.service.Service<ProcessApplicationDeploymentService>,- org.jboss.msc.value.Value<ProcessApplicationDeploymentService>
public class ProcessApplicationDeploymentService
extends Object
implements org.jboss.msc.service.Service<ProcessApplicationDeploymentService>
Service responsible for performing a deployment to the process engine and managing
 the resulting ProcessApplicationRegistration with the process engine.
We construct one of these per Process Archive of a Process Application.
We need a dependency on the componentView service of the ProcessApplication component and the process engine to which the deployment should be performed.
- Author:
- Daniel Meyer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ProcessApplicationDeploymentthe deployment we create herethe map of deployment resources obtained through scanningprotected final Supplier<ExecutorService>protected org.jboss.modules.Moduleprotected final Supplier<ProcessApplicationInterface>protected final Supplier<org.jboss.as.ee.component.ComponentView>protected final ProcessArchiveXmldeployment metadata that is passed inprotected final Supplier<ProcessEngine>protected final Consumer<ProcessApplicationDeploymentService>Fields inherited from interface org.jboss.msc.service.ServiceNULL
- 
Constructor SummaryConstructorsConstructorDescriptionProcessApplicationDeploymentService(Map<String, byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module, Supplier<ExecutorService> executorSupplier, Supplier<ProcessEngine> processEngineInjector, Supplier<ProcessApplicationInterface> noViewProcessApplication, Supplier<org.jboss.as.ee.component.ComponentView> paComponentView, Consumer<ProcessApplicationDeploymentService> provider) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidenableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) getValue()protected booleanisValidValueForResumePreviousBy(String resumePreviousBy) protected voidlogDeploymentSummary(Collection<String> resourceNames, String deploymentName, String processApplicationName) protected voidprotected voidvoidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context) 
- 
Field Details- 
executorSupplier
- 
processEngineSupplier
- 
noViewProcessApplicationSupplier
- 
paComponentViewSupplier
- 
provider
- 
deploymentMapthe map of deployment resources obtained through scanning
- 
processArchivedeployment metadata that is passed in
- 
deploymentthe deployment we create here
- 
moduleprotected org.jboss.modules.Module module
 
- 
- 
Constructor Details- 
ProcessApplicationDeploymentServicepublic ProcessApplicationDeploymentService(Map<String, byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module, Supplier<ExecutorService> executorSupplier, Supplier<ProcessEngine> processEngineInjector, Supplier<ProcessApplicationInterface> noViewProcessApplication, Supplier<org.jboss.as.ee.component.ComponentView> paComponentView, Consumer<ProcessApplicationDeploymentService> provider) 
 
- 
- 
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
 
- 
performDeploymentprotected void performDeployment() throws org.jboss.msc.service.StartException- Throws:
- org.jboss.msc.service.StartException
 
- 
enableResumingOfPreviousVersionsprotected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
- 
isValidValueForResumePreviousBy
- 
logDeploymentSummaryprotected void logDeploymentSummary(Collection<String> resourceNames, String deploymentName, String processApplicationName) - Parameters:
- deploymentMap2-
- deploymentName-
 
- 
performUndeploymentprotected void performUndeployment()
- 
getValuepublic ProcessApplicationDeploymentService getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
- getValuein interface- org.jboss.msc.value.Value<ProcessApplicationDeploymentService>
- Throws:
- IllegalStateException
- IllegalArgumentException
 
- 
getDeployment
- 
getProcessEngineName
- 
getProcessEngineSupplier
 
-