Examples of EbsBlockDevice


Examples of com.amazonaws.services.ec2.model.EbsBlockDevice

        List<BlockDeviceMapping> blockDeviceMappings = Lists.newArrayList();
        if (blockDevices != null && blockDevices.size() > 0) {
            for (BlockDevice device : blockDevices) {
                blockDeviceMappings.add(new BlockDeviceMapping()
                        .withDeviceName(device.getName())
                        .withEbs(new EbsBlockDevice()
                            .withVolumeSize(device.getSize())
                            .withDeleteOnTermination(true)
                         ));
            }
        }
View Full Code Here

Examples of org.jclouds.ec2.domain.Image.EbsBlockDevice

   public void testEBS() {
      Set<Image> contents = ImmutableSet.of(new Image("us-east-1", Architecture.I386, "websrv_2009-12-10",
               "Web Server AMI", "ami-246f8d4d", "706093390852/websrv_2009-12-10", "706093390852",
               ImageState.AVAILABLE, "available", ImageType.MACHINE, true, Sets.<String> newHashSet(), null, "windows", null,
               RootDeviceType.EBS, "/dev/sda1", ImmutableMap.<String, EbsBlockDevice> of("/dev/sda1",
                        new EbsBlockDevice("snap-d01272b9", 30, true), "xvdf", new EbsBlockDevice("snap-d31272ba", 250,
                                 false)), VirtualizationType.HVM, Hypervisor.XEN));

      Set<Image> result = parseImages("/describe_images_ebs.xml");

      assertEquals(result.toString(), contents.toString());
View Full Code Here

Examples of org.jclouds.ec2.domain.Image.EbsBlockDevice

   public void testEBS() {
      Set<Image> contents = ImmutableSet.of(new Image("us-east-1", Architecture.I386, "websrv_2009-12-10",
               "Web Server AMI", "ami-246f8d4d", "706093390852/websrv_2009-12-10", "706093390852",
               ImageState.AVAILABLE, "available", ImageType.MACHINE, true, Sets.<String> newHashSet(), null, "windows", null,
               RootDeviceType.EBS, "/dev/sda1", ImmutableMap.<String, EbsBlockDevice> of("/dev/sda1",
                        new EbsBlockDevice("snap-d01272b9", 30, true), "xvdf", new EbsBlockDevice("snap-d31272ba", 250,
                                 false)), ImmutableMap.<String, String> of(), VirtualizationType.HVM, Hypervisor.XEN));

      Set<Image> result = parseImages("/describe_images_ebs.xml");

      assertEquals(result.toString(), contents.toString());
View Full Code Here

Examples of org.jclouds.ec2.domain.Image.EbsBlockDevice

   public void testEBS() {
      Set<Image> contents = ImmutableSet.of(new Image("us-east-1", Architecture.I386, "websrv_2009-12-10",
               "Web Server AMI", "ami-246f8d4d", "706093390852/websrv_2009-12-10", "706093390852",
               ImageState.AVAILABLE, "available", ImageType.MACHINE, true, Sets.<String> newHashSet(), null, "windows", null,
               RootDeviceType.EBS, "/dev/sda1", ImmutableMap.<String, EbsBlockDevice> of("/dev/sda1",
                        new EbsBlockDevice("snap-d01272b9", 30, true), "xvdf", new EbsBlockDevice("snap-d31272ba", 250,
                                 false)), VirtualizationType.HVM, Hypervisor.XEN));

      Set<Image> result = parseImages("/describe_images_ebs.xml");

      assertEquals(result.toString(), contents.toString());
View Full Code Here

Examples of org.jclouds.ec2.domain.Image.EbsBlockDevice

      Set<Image> contents = ImmutableSet.of(new Image("us-east-1", Architecture.I386, "websrv_2009-12-10",
              "Web Server AMI", "ami-246f8d4d", "706093390852/websrv_2009-12-10", "706093390852",
              ImageState.AVAILABLE, "available", ImageType.MACHINE, true, Sets.<String> newHashSet(), null, "windows", null,
              RootDeviceType.EBS, "/dev/sda1",
              ImmutableMap.<String, EbsBlockDevice> of("/dev/sda1",
                      new EbsBlockDevice("snap-d01272b9", 30, true, "standard", null, false),
                      "xvdf", new EbsBlockDevice("snap-d31272ba", 250, false, "standard", null, false)),
              ImmutableMap.<String, String> of(), VirtualizationType.HVM, Hypervisor.XEN));

      Set<Image> result = parseImages("/describe_images_ebs.xml");

      assertEquals(result.toString(), contents.toString());
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.