Examples of distribute()


Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

            ProgressObject po;

            if (FileUtils.isJarFile(file) || file.isDirectory()) {
                po = mgr.distribute(targets, file, null);
            } else {
                po = mgr.distribute(targets, null, file);
            }
            waitForProgress(po);
            if (po.getDeploymentStatus().isCompleted()) {
                modules = po.getResultTargetModuleIDs();
                po = mgr.start(modules);
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                        log.error(getLocalizedString(actionRequest, "plugin.errorMsg04"));
                        return;
                    }
                    progress = mgr.redeploy(targets, moduleFile, planFile);
                } else {
                    progress = mgr.distribute(new Target[] {all[0]}, moduleFile, planFile);
                }
                while(progress.getDeploymentStatus().isRunning()) {
                    Thread.sleep(100);
                }
               
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                    if (null == targets) {
                        throw new IllegalStateException("No target to distribute to");
                    }
                    targets = new Target[] {targets[0]};
                   
                    ProgressObject po = mgr.distribute(targets, rarFile, tempFile);
                    waitForProgress(po);
                    if(po.getDeploymentStatus().isCompleted()) {
                        TargetModuleID[] ids = po.getResultTargetModuleIDs();
                        po = mgr.start(ids);
                        waitForProgress(po);
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                if (null == targets) {
                    throw new IllegalStateException("No target to distribute to");
                }
                targets = new Target[] {targets[0]};
               
                ProgressObject po = mgr.distribute(targets, null, tempFile);
                waitForProgress(po);
                if (po.getDeploymentStatus().isCompleted()) {
                    TargetModuleID[] ids = po.getResultTargetModuleIDs();
                    po = mgr.start(ids);
                    waitForProgress(po);
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                //TargetModuleID[] done = po.getResultTargetModuleIDs();

                if (targets.size() > 0) {
                    Target[] tlist = identifyTargets(targets, mgr);
                    multipleTargets = tlist.length > 1;
                    po = mgr.distribute(tlist, module, plan);
                    waitForProgress(consoleReader, po);
                } else {
                    Target[] tlist = mgr.getTargets();
                    if (null == tlist) {
                        throw new IllegalStateException("No target to distribute to");
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                    if (null == tlist) {
                        throw new IllegalStateException("No target to distribute to");
                    }
                    tlist = new Target[] { tlist[0] };
                    multipleTargets = tlist.length > 1;
                    po = mgr.distribute(tlist, module, plan);
                    waitForProgress(consoleReader, po);
                }
                if (po.getDeploymentStatus().isFailed()) {
                    throw new DeploymentException("Unable to redeploy "
                            + (module == null ? plan.getName() : module.getName()) + ": "
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

        if (null == targets) {
            throw new IllegalStateException("No target to distribute to");
        }
        targets = new Target[] {targets[0]};
       
        ProgressObject progress = manager.distribute(targets, file, plan);
        DeploymentStatus status = waitFor(progress);

        if (status.isFailed()) {
            //
            // FIXME: There must be a better way to handle this.
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

                    if (null == targets) {
                        throw new IllegalStateException("No target to distribute to");
                    }
                    targets = new Target[] {targets[0]};

                    ProgressObject po = mgr.distribute(targets, rarFile, tempFile);
                    waitForProgress(po);
                    if (po.getDeploymentStatus().isCompleted()) {
                        TargetModuleID[] ids = po.getResultTargetModuleIDs();
                        po = mgr.start(ids);
                        waitForProgress(po);
View Full Code Here

Examples of javax.enterprise.deploy.spi.DeploymentManager.distribute()

            targets = new Target[] { targets[0] };

            ProgressObject po;

            if (JarUtils.isJarFile(file) || file.isDirectory()) {
                po = mgr.distribute(targets, file, null);
            } else {
                po = mgr.distribute(targets, null, file);
            }
            waitForProgress(po);
            if (po.getDeploymentStatus().isCompleted()) {
View Full Code Here

Examples of org.apache.openjpa.slice.DistributionPolicy.distribute()

    private String assignSlice(OpenJPAStateManager sm) {
        Object pc = sm.getPersistenceCapable();
        DistributionPolicy policy = _conf.getDistributionPolicyInstance();
        List<String> sliceNames = _conf.getActiveSliceNames();
        String slice =policy.distribute(pc, sliceNames, getContext());
        if (!sliceNames.contains(slice)) {
            throw new UserException(_loc.get("bad-policy-slice", new Object[] {
                    policy.getClass().getName(), slice, pc, sliceNames }));
        }
        sm.setImplData(slice, true);
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.