[jboss-jira] [JBoss JIRA] (AS7-2777) Add notion of start/stop for deployments
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Fri Mar 30 10:24:48 EDT 2012
[ https://issues.jboss.org/browse/AS7-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680658#comment-12680658 ]
Thomas Diesler commented on AS7-2777:
-------------------------------------
Status update:
I added deployment operations start/stop and the ability in the DeploymentPlanBuilder to say
{code}
andDeploy().andNoStart()
{code}
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
{code}
[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
{code}
https://github.com/tdiesler/jboss-as/tree/as2777
> Add notion of start/stop for deployments
> ----------------------------------------
>
> Key: AS7-2777
> URL: https://issues.jboss.org/browse/AS7-2777
> Project: Application Server 7
> Issue Type: Sub-task
> Components: Domain Management, JSR88, OSGi, Server
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Fix For: 7.2.0.Alpha1
>
>
> The JSR88 deployemt API allows control over the full deployment lifecycle
> * deploy
> * start
> * stop
> * undeploy
> OSGi deployments (i.e. bundles) also have the notion of start/stop
> This should be reflected in the management API for deployments.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list