[jboss-jira] [JBoss JIRA] Created: (JBDEPLOY-226) Allow multiple deployments to change state at once
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Mon Nov 23 13:20:29 EST 2009
Allow multiple deployments to change state at once
--------------------------------------------------
Key: JBDEPLOY-226
URL: https://jira.jboss.org/jira/browse/JBDEPLOY-226
Project: JBoss Deployers
Issue Type: Feature Request
Components: deployer
Reporter: Thomas Diesler
Fix For: JBDEPLOY-2.2.x
Currently the BundleManager can only reslove bundles one-by-one
deployerClient.change(unit.getName(), DeploymentStages.CLASSLOADER);
deployerClient.checkComplete(unit.getName());
bundleState.changeState(Bundle.RESOLVED);
this results in uglyness in PackageAdmin
int resolved = 1;
while (resolved > 0)
{
resolved = 0;
Iterator<OSGiBundleState> it = resolvableBundles.iterator();
while (it.hasNext())
{
OSGiBundleState bundleState = it.next();
if (bundleManager.resolveBundle(bundleState, false))
{
it.remove();
resolved++;
}
}
}
PackageAdmin should be able to use an API that resolves multiple deployemnts at once.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list