Examples of DeploymentPlan


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

Examples of org.jdesktop.wonderland.runner.DeploymentPlan

     * @return An XML encoding of the module's basic information
     */
    @GET
    @Produces({"application/xml", "application/json"})
    public Response getDeploymentPlan(@QueryParam(value="location") String location) {
        DeploymentPlan dp = DeploymentManager.getInstance().getPlan().clone();

        // filter by location
        if (location != null) {
            for (DeploymentEntry de : dp.getEntries().toArray(new DeploymentEntry[0])) {
                if (!location.equals(de.getLocation())) {
                    dp.removeEntry(de);
                }
            }
        }

        ResponseBuilder rb = Response.ok(dp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.