Class ProcessApplicationDeploymentService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.msc.service.Service<ProcessApplicationDeploymentService>, org.jboss.msc.value.Value<ProcessApplicationDeploymentService>

    public class ProcessApplicationDeploymentService
    extends java.lang.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 Detail

      • executorInjector

        protected org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> executorInjector
      • processEngineInjector

        protected org.jboss.msc.value.InjectedValue<ProcessEngine> processEngineInjector
      • paComponentViewInjector

        protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> paComponentViewInjector
      • deploymentMap

        protected final java.util.Map<java.lang.String,​byte[]> deploymentMap
        the map of deployment resources obtained through scanning
      • processArchive

        protected final ProcessArchiveXml processArchive
        deployment metadata that is passed in
      • module

        protected org.jboss.modules.Module module
    • Constructor Detail

      • ProcessApplicationDeploymentService

        public ProcessApplicationDeploymentService​(java.util.Map<java.lang.String,​byte[]> deploymentMap,
                                                   ProcessArchiveXml processArchive,
                                                   org.jboss.modules.Module module)
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<ProcessApplicationDeploymentService>
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<ProcessApplicationDeploymentService>
      • performDeployment

        protected void performDeployment()
                                  throws org.jboss.msc.service.StartException
        Throws:
        org.jboss.msc.service.StartException
      • enableResumingOfPreviousVersions

        protected void enableResumingOfPreviousVersions​(ProcessApplicationDeploymentBuilder deploymentBuilder)
                                                 throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • isValidValueForResumePreviousBy

        protected boolean isValidValueForResumePreviousBy​(java.lang.String resumePreviousBy)
      • logDeploymentSummary

        protected void logDeploymentSummary​(java.util.Collection<java.lang.String> resourceNames,
                                            java.lang.String deploymentName,
                                            java.lang.String processApplicationName)
        Parameters:
        deploymentMap2 -
        deploymentName -
      • performUndeployment

        protected void performUndeployment()
      • getProcessEngineInjector

        public org.jboss.msc.value.InjectedValue<ProcessEngine> getProcessEngineInjector()
      • getPaComponentViewInjector

        public org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> getPaComponentViewInjector()
      • getProcessEngineName

        public java.lang.String getProcessEngineName()
      • getExecutorInjector

        public org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> getExecutorInjector()