Package com.vmware.bdd.service.sp

Examples of com.vmware.bdd.service.sp.SetLocalRepoSP


      logger.info("Nodes needed to be set password: " + ipsOfNodes.toString());

      boolean succeed = true;
      List<Callable<Void>> storeProcedures = new ArrayList<Callable<Void>>();
      for (NodeEntity node : nodes) {
         SetLocalRepoSP setLocalRepoSP =
               new SetLocalRepoSP(node, repoId, localRepoURL);
         storeProcedures.add(setLocalRepoSP);
      }
      AuAssert.check(!storeProcedures.isEmpty());

      try {
         Callable<Void>[] storeProceduresArray =
               storeProcedures.toArray(new Callable[0]);
         NoProgressUpdateCallback callback = new NoProgressUpdateCallback();
         ExecutionResult[] result =
               Scheduler
                     .executeStoredProcedures(
                           com.vmware.aurora.composition.concurrent.Priority.BACKGROUND,
                           storeProceduresArray, callback);

         for (int i = 0; i < storeProceduresArray.length; i++) {
            SetLocalRepoSP sp = (SetLocalRepoSP) storeProceduresArray[i];
            NodeEntity node = sp.getNodeEntity();
            String vmNameWithIP = node.getVmNameWithIP();
            if (result[i].finished && result[i].throwable == null) {
               updateNodeData(node, true, null, null);
               logger.info("Set local repo: store procedure succeed for "
                     + vmNameWithIP);
View Full Code Here


   @Override
   public boolean setLocalRepoForNode(String clusterName, NodeEntity node,
         String repoId, String localRepoURL) throws Exception {
      AuAssert.check(clusterName != null && node != null);

      SetLocalRepoSP setLocalRepoSP = new SetLocalRepoSP(node, repoId, localRepoURL);
      String vmNameWithIP = node.getVmNameWithIP();
      try {
         if (setLocalRepoSP.setupNodeLocalRepo()) {
            updateNodeData(node, true, null, null);
            logger.info("Set local repo for " + vmNameWithIP + " succeed.");
            return true;
         }
         //we fail by throwing exceptions
View Full Code Here

TOP

Related Classes of com.vmware.bdd.service.sp.SetLocalRepoSP

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.