jBPM Console NG - Business Domain Backend 6.2.1-SNAPSHOT

org.jbpm.console.ng.bd.backend.server
Class DeploymentManagerEntryPointImpl

java.lang.Object
  extended by org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl
All Implemented Interfaces:
org.guvnor.common.services.project.builder.service.PostBuildHandler, DeploymentManagerEntryPoint, Initializable<org.jbpm.services.api.model.DeploymentUnit>, org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<KModuleKey,KModuleDeploymentUnitSummary>

@ApplicationScoped
public class DeploymentManagerEntryPointImpl
extends Object
implements DeploymentManagerEntryPoint, Initializable<org.jbpm.services.api.model.DeploymentUnit>, org.guvnor.common.services.project.builder.service.PostBuildHandler


Constructor Summary
DeploymentManagerEntryPointImpl()
           
 
Method Summary
 void activate(DeploymentUnitSummary unitSummary)
           
protected  void cleanup(String identifier)
           
 void configure()
           
 void deactivate(DeploymentUnitSummary unitSummary)
           
protected  boolean deploy(org.jbpm.services.api.model.DeploymentUnit unit)
           
 void deploy(DeploymentUnitSummary unitSummary)
           
 void deployOnEvent(org.guvnor.structure.backend.deployment.DeploymentConfigChangedEvent event)
          Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized
 org.uberfire.paging.PageResponse<KModuleDeploymentUnitSummary> getData(org.jbpm.console.ng.ga.model.QueryFilter filter)
           
 KModuleDeploymentUnitSummary getItem(KModuleKey key)
           
 void initDeployments(Set<org.jbpm.services.api.model.DeploymentUnit> deploymentUnits)
           
 void process(org.guvnor.common.services.project.builder.model.BuildResults buildResults)
          Auto deployed is called from authoring environment after successful build and deploy (to maven)
 void redeploy()
           
 void removeDeployment(org.jbpm.services.api.DeploymentEvent event)
          Reacts on events fired by deployment service upon successful undeployment from runtime environment so that can be stored in system repository
 void saveDeployment(org.jbpm.services.api.DeploymentEvent event)
          Reacts on events fired by deployment service upon successful deployment to runtime environment so that can be stored in system repository
protected  void undeploy(org.jbpm.services.api.model.DeploymentUnit unit)
           
 void undeploy(DeploymentUnitSummary unitSummary)
           
 void undeployOnEvent(org.guvnor.structure.backend.deployment.DeploymentConfigChangedEvent event)
          Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentManagerEntryPointImpl

public DeploymentManagerEntryPointImpl()
Method Detail

configure

@PostConstruct
public void configure()

initDeployments

public void initDeployments(Set<org.jbpm.services.api.model.DeploymentUnit> deploymentUnits)
Specified by:
initDeployments in interface Initializable<org.jbpm.services.api.model.DeploymentUnit>

deploy

public void deploy(DeploymentUnitSummary unitSummary)
Specified by:
deploy in interface DeploymentManagerEntryPoint

deploy

protected boolean deploy(org.jbpm.services.api.model.DeploymentUnit unit)

undeploy

public void undeploy(DeploymentUnitSummary unitSummary)
Specified by:
undeploy in interface DeploymentManagerEntryPoint

activate

public void activate(DeploymentUnitSummary unitSummary)
Specified by:
activate in interface DeploymentManagerEntryPoint

deactivate

public void deactivate(DeploymentUnitSummary unitSummary)
Specified by:
deactivate in interface DeploymentManagerEntryPoint

undeploy

protected void undeploy(org.jbpm.services.api.model.DeploymentUnit unit)

redeploy

public void redeploy()
Specified by:
redeploy in interface DeploymentManagerEntryPoint

cleanup

protected void cleanup(String identifier)

getData

public org.uberfire.paging.PageResponse<KModuleDeploymentUnitSummary> getData(org.jbpm.console.ng.ga.model.QueryFilter filter)
Specified by:
getData in interface org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<KModuleKey,KModuleDeploymentUnitSummary>

saveDeployment

public void saveDeployment(@Observes
                           org.jbpm.services.api.DeploymentEvent event)
Reacts on events fired by deployment service upon successful deployment to runtime environment so that can be stored in system repository

Parameters:
event - deploymentEvent that holds all required information from runtime point of view

removeDeployment

public void removeDeployment(@Observes
                             org.jbpm.services.api.DeploymentEvent event)
Reacts on events fired by deployment service upon successful undeployment from runtime environment so that can be stored in system repository

Parameters:
event - deploymentEvent that holds all required information from runtime point of view

process

public void process(org.guvnor.common.services.project.builder.model.BuildResults buildResults)
Auto deployed is called from authoring environment after successful build and deploy (to maven)

Specified by:
process in interface org.guvnor.common.services.project.builder.service.PostBuildHandler
Parameters:
buildResults - Maven deploy result that holds GAV to construct KModuleDeploymentUnit

undeployOnEvent

public void undeployOnEvent(@Observes
                            org.guvnor.structure.backend.deployment.DeploymentConfigChangedEvent event)
Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized

Parameters:
event - - event that carries the complete DeploymentUnit to be undeployed

deployOnEvent

public void deployOnEvent(@Observes
                          org.guvnor.structure.backend.deployment.DeploymentConfigChangedEvent event)
Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized

Parameters:
event - - event that carries the complete DeploymentUnit to be deployed

getItem

public KModuleDeploymentUnitSummary getItem(KModuleKey key)
Specified by:
getItem in interface org.jbpm.console.ng.ga.service.GenericServiceEntryPoint<KModuleKey,KModuleDeploymentUnitSummary>

jBPM Console NG - Business Domain Backend 6.2.1-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.