Package org.jclouds.compute.domain

Examples of org.jclouds.compute.domain.ImageTemplate


      requestResponseMap.put(describeImageRequest, describeImagesResponse);

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "us-east-1/i-2baa5550");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "us-east-1/ami-be3adfd7");
   }
View Full Code Here


      requestResponseMap.put(createImage, createImageResponse).build();
      requestResponseMap.put(getImage, getImageResponse).build();

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "1234");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "2");
   }
View Full Code Here

      requestResponseMap.put(createImage, createImageResponse).build();
      requestResponseMap.put(getImage, getImageResponse).build();

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "az-1.region-a.geo-1/71752");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "az-1.region-a.geo-1/52415800-8b69-11e0-9b19-734f5736d2a2");
   }
View Full Code Here

            .put(getTemplate, getTemplateResponse)
            .build();

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("temp-template-ignore", "3239ade9-fd25-405c-8eda-59f0313a3fb0");
     
      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "3dc6ce25-a6cf-4d60-a664-3499993b511b");
   }
View Full Code Here

      requestResponseMap.put(createImage, createImageResponse).build();
      requestResponseMap.put(getImage, getImageResponse).build();

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();

      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "az-1.region-a.geo-1/71752");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "az-1.region-a.geo-1/52415800-8b69-11e0-9b19-734f5736d2a2");
   }
View Full Code Here

      requestResponseMap.put(createImage, createImageResponse).build();
      requestResponseMap.put(getImage, getImageResponse).build();

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "1234");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "2");
   }
View Full Code Here

      requestResponseMap.put(describeImageRequest, describeImagesResponse);

      ImageExtension apiThatCreatesImage = requestsSendResponses(requestResponseMap.build()).getImageExtension().get();
     
      ImageTemplate newImageTemplate = apiThatCreatesImage.buildImageTemplateFromNode("test", "us-east-1/i-2baa5550");

      Image image = Futures.getUnchecked(apiThatCreatesImage.createImage(newImageTemplate));
      assertEquals(image.getId(), "us-east-1/ami-be3adfd7");
   }
View Full Code Here

      checkReachable(node);

      logger.info("Creating image from node %s, started with template: %s", node, template);

      ImageTemplate newImageTemplate = imageExtension.get().buildImageTemplateFromNode(imageGroup,
              node.getId());

      Image image = imageExtension.get().createImage(newImageTemplate).get();

      logger.info("Image created: %s", image);
View Full Code Here

TOP

Related Classes of org.jclouds.compute.domain.ImageTemplate

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.