[jboss-as7-dev] Add notion of start/stop for deployments

Thomas Diesler thomas.diesler at jboss.com
Fri Mar 30 10:40:20 EDT 2012


Folks,

here is an update on AS7-2777 <https://issues.jboss.org/browse/AS7-2777>

I added deployment operations start/stop and the ability in the 
DeploymentPlanBuilder to say

     andDeploy().andNoStart()

Following the INSTALL phase there is a new ACTIVATE phase. When the 
'deploy' operation is marked with StartPolicy.DEFERRED the 
DeploymentPhaseService for ACTIVATE is created with initial Mode.NEVER, 
which causes no execution of DUPs in ACTIVATE and beyond.

The 'start' operation, triggers continuation of DUP execution by setting 
the DeploymentPhaseService for ACTIVATE to Mode.ACTIVE.

The 'stop' operation sets the DeploymentPhaseService for ACTIVATE to 
Mode.NEVER

In this way start/stop can be called repeatedly

Test coverage in

     [tdiesler at tdvaio smoke]$ mvn -Dtest=StandaloneDeploymentTestCase 
install

     Running org.jboss.as.test.smoke.osgi.StandaloneDeploymentTestCase
     Tests run: 12, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 
20.721 sec

https://github.com/tdiesler/jboss-as/tree/as2777

cheers
-thomas

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20120330/7403c34a/attachment.html 


More information about the jboss-as7-dev mailing list