Examples of distribute()


Examples of com.exigen.ie.constrainer.Constrainer.distribute()

    Problem problem = (Problem) vars[0].getProblem();
    Constrainer constrainer = problem.getConstrainer();
    IntExpArray cVars = problem.getExpArray(vars);   
    IntExpArray cCardinalityVars = problem.getExpArray(cardVars);
    try {
      IntExpArray cards = constrainer.distribute(cVars,values);
      Constraint newC = new ConstrainerIntExpArrayEq(cards,cCardinalityVars);
      setImpl(constrainer.addConstraint(newC));
    } catch (Exception f) {
      throw new RuntimeException(
          "Failure to create GlobalCardinality constraint");
View Full Code Here

Examples of de.bamberg.ha.api.cluster.ClusterManager.distribute()

  public String login() {
    log.debug("trying to login");
    ClusterManager clusterManager=clusterManagerFactory.getClusterManager();
    Session newSession=new Session();
    newSession=(Session) clusterManager.distribute(newSession);
    String sessionid=newSession.getId();
    return sessionid;
  }
 
  @DistributedExecution (DistributedExecutionTarget.KEY_OWNER)
View Full Code Here

Examples of hampi.utils.PigeonHoleDistributor.distribute()

  public void testDistro1() throws Exception{
    int pigeons = 20;
    int holes = 5;
    PigeonHoleDistributor phd = new PigeonHoleDistributor();
    Set<List<Integer>> distribute = phd.distribute(holes, pigeons, false);
    assertTrue(!distribute.isEmpty());
    for (List<Integer> list : distribute){
      assertEquals(pigeons, sum(list));
    }
  }
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()

                if (null == targets) {
                    throw new IllegalStateException("No target to distribute to");
                }
                targets = new Target[] {targets[0]};
               
                ProgressObject progress = mgr.distribute(targets, moduleFile, planFile);
                while (progress.getDeploymentStatus().isRunning()) {
                    Thread.sleep(100);
                }

                String abbrStatusMessage;
View Full Code Here

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

                    if(targets.length == 0) {
                        throw new PortletException("Unable to identify modules to replace.  Please include a Geronimo deployment plan or use the command-line deployment tool.");
                    }
                    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, 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 (DeployUtils.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 javax.enterprise.deploy.spi.DeploymentManager.distribute()

            ProgressObject po;
            if (DeployUtils.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
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.