Examples of VolumeImpl


Examples of org.jclouds.compute.domain.internal.VolumeImpl

    public EC2HardwareBuilder m1_small() {
        return new EC2HardwareBuilder("m1.small")
                .ram(2048)
                .processors(ImmutableList.of(new Processor(2, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(80.0f, true, true)));
    }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

    public EC2HardwareBuilder m1_medium() {
        return new EC2HardwareBuilder("m1.medium")
                .ram(4096)
                .processors(ImmutableList.of(new Processor(4, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(160.0f, true, true)));
    }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

    public EC2HardwareBuilder m1_large() {
        return new EC2HardwareBuilder("m1.large")
                .ram(8192)
                .processors(ImmutableList.of(new Processor(8, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(320.0f, true, true)));
    }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

    public EC2HardwareBuilder m1_xlarge() {
        return new EC2HardwareBuilder("m1.xlarge")
                .ram(15872)
                .processors(ImmutableList.of(new Processor(16, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(640.0f, true, true)));
    }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

    public EC2HardwareBuilder m2_2xlarge() {
        return new EC2HardwareBuilder("m2.2xlarge")
                .ram(30720)
                .processors(ImmutableList.of(new Processor(16, 1)))
                .volumes(ImmutableList.<Volume>of(new VolumeImpl(640.0f, true, true)));
    }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

               }));
      return builder;
   }

   public Volume apply(ResourceAllocationSettingData from) {
      return new VolumeImpl(from.getAddressOnParent() + "", Volume.Type.LOCAL, from.getVirtualQuantity() == null ? null
               : from.getVirtualQuantity().longValue() / (float) (1024 * 1024), null, "0".equals(from.getAddressOnParent())
               || ResourceType.BASE_PARTITIONABLE_UNIT.equals(from.getResourceType()), true);
   }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

   @Test
   public void testWhenHardwareAndImageMatchHardwareOperatingSystemAndImageIdAreSet() {

      Hardware existingHardware = new HardwareBuilder().id("us-sw-1/Small 1GB").providerId("Small 1GB").ram(1024)
            .volume(new VolumeImpl(Float.valueOf(61440), true, true)).location(zone).build();
      Image existingImage = new ImageBuilder().id("us-sw-1/sdc:sdc:centos-5.7:1.2.1")
            .operatingSystem(OperatingSystem.builder().family(OsFamily.LINUX).description("foobuntu").build())
            .providerId("sdc:sdc:centos-5.7:1.2.1").description("foobuntu").status(Image.Status.AVAILABLE)
            .location(zone).build();
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

      org.jclouds.joyent.cloudapi.v6_5.domain.Package pkg = pkgInDatacenter.get();
      return new HardwareBuilder().id(pkgInDatacenter.slashEncode()).providerId(pkg.getName()).name(pkg.getName())
            .ram(pkg.getMemorySizeMb())
            // TODO: no api call to get processors.. either hard-code or
            // calculate
            .processor(new Processor(1, 1.0)).volume(new VolumeImpl(Float.valueOf(pkg.getDiskSizeGb()), true, true))
            .location(location).build();
   }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

   public static EC2HardwareBuilder m1_small() {
      return new EC2HardwareBuilder(InstanceType.M1_SMALL)
            .ram(1740)
            .processors(ImmutableList.of(new Processor(1.0, 1.0)))
            .volumes(
                  ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(150.0f,
                        "/dev/sda2", false, false)));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.internal.VolumeImpl

   public static EC2HardwareBuilder m1_medium() {
      return new EC2HardwareBuilder(InstanceType.M1_MEDIUM)
            .ram(3750)
            .processors(ImmutableList.of(new Processor(1.0, 2.0)))
            .volumes(
                     ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f,
                           "/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false)));
   }
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.