Package org.jboss.as.standalone.client.api.deployment

Examples of org.jboss.as.standalone.client.api.deployment.DeploymentPlan


                // Throw away any found marker files that we didn't already know about
                Set<String> validFinds = cleanSpuriousMarkerFiles(foundDeployed);
                validFinds.addAll(newlyAdded);
                this.deployed = validFinds;

                DeploymentPlan plan = builder.build();

                if (plan.getDeploymentActions().size() > 0) {
                    if (log.isDebugEnabled()) {
                        for (DeploymentAction action : plan.getDeploymentActions()) {
                            log.debugf("Deployment plan %s includes action of type %s affecting deployment %s", plan.getId(), action.getType(), action.getDeploymentUnitUniqueName());
                        }
                    }
                    Future<ServerDeploymentPlanResult> future = deploymentManager.execute(plan);

                    try {
                        ServerDeploymentPlanResult result = future.get(60, TimeUnit.SECONDS);
                        // FIXME deal with result
                    } catch (TimeoutException e) {
                        // This could be a WARN but deployments could validly take over 60 seconds
                        log.infof("Deployment plan %s did not complete within 60 seconds. Resuming scanning for deployment changes.", plan.getId());
                    }
                }

                log.tracef("Scan complete");
            }
View Full Code Here

TOP

Related Classes of org.jboss.as.standalone.client.api.deployment.DeploymentPlan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.