Package org.apache.stratos.cloud.controller.concurrent

Examples of org.apache.stratos.cloud.controller.concurrent.ThreadExecutor.shutdown()


      // create Jclouds objects, for each IaaS
      for (Cartridge cartridge : cartridges) {
        // jclouds object building is time consuming, hence I use Java executor framework
        exec.execute(new JcloudsObjectBuilder(cartridge, deploymentFileData));
      }
      exec.shutdown();
      // update map
      fileToCartridgeListMap.put(deploymentFileData.getAbsolutePath(),
                                 new ArrayList<Cartridge>(cartridges));

      log.info("Successfully deployed the Cartridge definition specified at "+deploymentFileData.getAbsolutePath());
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.