mirror of https://github.com/apache/jclouds.git
JCLOUDS-431: Added m3.medium and m3.large instance types to EC2
This commit is contained in:
parent
597615977e
commit
d395a076cf
|
@ -18,6 +18,7 @@ package org.jclouds.ec2.compute.domain;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.google.common.base.Predicates.not;
|
import static com.google.common.base.Predicates.not;
|
||||||
|
import static org.jclouds.compute.domain.Volume.Type.LOCAL;
|
||||||
import static org.jclouds.compute.predicates.ImagePredicates.any;
|
import static org.jclouds.compute.predicates.ImagePredicates.any;
|
||||||
import static org.jclouds.compute.predicates.ImagePredicates.idIn;
|
import static org.jclouds.compute.predicates.ImagePredicates.idIn;
|
||||||
|
|
||||||
|
@ -31,7 +32,7 @@ import org.jclouds.compute.domain.Image;
|
||||||
import org.jclouds.compute.domain.OsFamily;
|
import org.jclouds.compute.domain.OsFamily;
|
||||||
import org.jclouds.compute.domain.Processor;
|
import org.jclouds.compute.domain.Processor;
|
||||||
import org.jclouds.compute.domain.Volume;
|
import org.jclouds.compute.domain.Volume;
|
||||||
import org.jclouds.compute.domain.internal.VolumeImpl;
|
import org.jclouds.compute.domain.VolumeBuilder;
|
||||||
import org.jclouds.compute.predicates.ImagePredicates;
|
import org.jclouds.compute.predicates.ImagePredicates;
|
||||||
import org.jclouds.domain.Location;
|
import org.jclouds.domain.Location;
|
||||||
import org.jclouds.ec2.domain.InstanceType;
|
import org.jclouds.ec2.domain.InstanceType;
|
||||||
|
@ -210,9 +211,9 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M1_SMALL)
|
return new EC2HardwareBuilder(InstanceType.M1_SMALL)
|
||||||
.ram(1740)
|
.ram(1740)
|
||||||
.processors(ImmutableList.of(new Processor(1.0, 1.0)))
|
.processors(ImmutableList.of(new Processor(1.0, 1.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(150.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sda2", false, false)));
|
new VolumeBuilder().type(LOCAL).size(150.0f).device("/dev/sda2").bootDevice(false).durable(false).build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -222,9 +223,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M1_MEDIUM)
|
return new EC2HardwareBuilder(InstanceType.M1_MEDIUM)
|
||||||
.ram(3750)
|
.ram(3750)
|
||||||
.processors(ImmutableList.of(new Processor(1.0, 2.0)))
|
.processors(ImmutableList.of(new Processor(1.0, 2.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false)));
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdc").bootDevice(false).durable(false).build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -243,9 +245,11 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M1_LARGE)
|
return new EC2HardwareBuilder(InstanceType.M1_LARGE)
|
||||||
.ram(7680)
|
.ram(7680)
|
||||||
.processors(ImmutableList.of(new Processor(2.0, 2.0)))
|
.processors(ImmutableList.of(new Processor(2.0, 2.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false))).is64Bit(true);
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -255,10 +259,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M1_XLARGE)
|
return new EC2HardwareBuilder(InstanceType.M1_XLARGE)
|
||||||
.ram(15360)
|
.ram(15360)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 2.0)))
|
.processors(ImmutableList.of(new Processor(4.0, 2.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl(
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false)))
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdc").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdd").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sde").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +274,9 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
public static EC2HardwareBuilder m2_xlarge() {
|
public static EC2HardwareBuilder m2_xlarge() {
|
||||||
return new EC2HardwareBuilder(InstanceType.M2_XLARGE).ram(17510)
|
return new EC2HardwareBuilder(InstanceType.M2_XLARGE).ram(17510)
|
||||||
.processors(ImmutableList.of(new Processor(2.0, 3.25)))
|
.processors(ImmutableList.of(new Processor(2.0, 3.25)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(420.0f, "/dev/sda1", true, false))).is64Bit(true);
|
.volumes(ImmutableList.<Volume> of(
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sda1").bootDevice(true).durable(false).build()))
|
||||||
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -278,9 +286,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M2_2XLARGE)
|
return new EC2HardwareBuilder(InstanceType.M2_2XLARGE)
|
||||||
.ram(35020)
|
.ram(35020)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 3.25)))
|
.processors(ImmutableList.of(new Processor(4.0, 3.25)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false))).is64Bit(true);
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdb").bootDevice(false).durable(false).build()))
|
||||||
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -290,9 +299,35 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.M2_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.M2_4XLARGE)
|
||||||
.ram(70041)
|
.ram(70041)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 3.25)))
|
.processors(ImmutableList.of(new Processor(8.0, 3.25)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false))).is64Bit(true);
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
|
.is64Bit(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see InstanceType#M3_MEDIUM
|
||||||
|
*/
|
||||||
|
public static EC2HardwareBuilder m3_medium() {
|
||||||
|
return new EC2HardwareBuilder(InstanceType.M3_MEDIUM)
|
||||||
|
.ram(3840)
|
||||||
|
.processors(ImmutableList.of(new Processor(1.0, 3.0)))
|
||||||
|
.volumes(ImmutableList.<Volume> of(
|
||||||
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(4.0f).device("/dev/sdb").bootDevice(false).durable(false).build()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see InstanceType#M3_LARGE
|
||||||
|
*/
|
||||||
|
public static EC2HardwareBuilder m3_large() {
|
||||||
|
return new EC2HardwareBuilder(InstanceType.M3_LARGE)
|
||||||
|
.ram(7680)
|
||||||
|
.processors(ImmutableList.of(new Processor(2.0, 3.25)))
|
||||||
|
.volumes(ImmutableList.<Volume> of(
|
||||||
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(32.0f).device("/dev/sdb").bootDevice(false).durable(false).build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -318,9 +353,9 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C1_MEDIUM)
|
return new EC2HardwareBuilder(InstanceType.C1_MEDIUM)
|
||||||
.ram(1740)
|
.ram(1740)
|
||||||
.processors(ImmutableList.of(new Processor(2.0, 2.5)))
|
.processors(ImmutableList.of(new Processor(2.0, 2.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(340.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sda2", false, false)));
|
new VolumeBuilder().type(LOCAL).size(340.0f).device("/dev/sda2").bootDevice(false).durable(false).build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -330,10 +365,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C1_XLARGE)
|
return new EC2HardwareBuilder(InstanceType.C1_XLARGE)
|
||||||
.ram(7168)
|
.ram(7168)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 2.5)))
|
.processors(ImmutableList.of(new Processor(8.0, 2.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl(
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false)))
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdc").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sdd").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(420.0f).device("/dev/sde").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,10 +381,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C3_LARGE)
|
return new EC2HardwareBuilder(InstanceType.C3_LARGE)
|
||||||
.ram(3750)
|
.ram(3750)
|
||||||
.processors(ImmutableList.of(new Processor(2.0, 3.5)))
|
.processors(ImmutableList.of(new Processor(2.0, 3.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(16.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(16.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(16.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(16.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,10 +395,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C3_XLARGE)
|
return new EC2HardwareBuilder(InstanceType.C3_XLARGE)
|
||||||
.ram(7168)
|
.ram(7168)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 3.5)))
|
.processors(ImmutableList.of(new Processor(4.0, 3.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(40.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(40.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(40.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(40.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -372,10 +409,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C3_2XLARGE)
|
return new EC2HardwareBuilder(InstanceType.C3_2XLARGE)
|
||||||
.ram(15360)
|
.ram(15360)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 3.5)))
|
.processors(ImmutableList.of(new Processor(8.0, 3.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(80.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(80.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(80.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(80.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,10 +423,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C3_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.C3_4XLARGE)
|
||||||
.ram(30720)
|
.ram(30720)
|
||||||
.processors(ImmutableList.of(new Processor(16.0, 3.4375)))
|
.processors(ImmutableList.of(new Processor(16.0, 3.4375)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(160.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(160.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(160.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(160.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,10 +437,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.C3_8XLARGE)
|
return new EC2HardwareBuilder(InstanceType.C3_8XLARGE)
|
||||||
.ram(61440)
|
.ram(61440)
|
||||||
.processors(ImmutableList.of(new Processor(32.0, 3.375)))
|
.processors(ImmutableList.of(new Processor(32.0, 3.375)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(320.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(320.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(320.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(320.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.is64Bit(true);
|
.is64Bit(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,9 +448,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.CG1_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.CG1_4XLARGE)
|
||||||
.ram(22 * 1024)
|
.ram(22 * 1024)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 4.0), new Processor(4.0, 4.0)))
|
.processors(ImmutableList.of(new Processor(4.0, 4.0), new Processor(4.0, 4.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -421,9 +459,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.CC1_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.CC1_4XLARGE)
|
||||||
.ram(23 * 1024)
|
.ram(23 * 1024)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 4.0), new Processor(4.0, 4.0)))
|
.processors(ImmutableList.of(new Processor(4.0, 4.0), new Processor(4.0, 4.0)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,10 +470,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.CC2_8XLARGE)
|
return new EC2HardwareBuilder(InstanceType.CC2_8XLARGE)
|
||||||
.ram(60 * 1024 + 512)
|
.ram(60 * 1024 + 512)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 5.5), new Processor(8.0, 5.5)))
|
.processors(ImmutableList.of(new Processor(8.0, 5.5), new Processor(8.0, 5.5)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false), new VolumeImpl(
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
840.0f, "/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdc").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sdd").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(840.0f).device("/dev/sde").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -445,9 +486,9 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.G2_2XLARGE)
|
return new EC2HardwareBuilder(InstanceType.G2_2XLARGE)
|
||||||
.ram(15*1024)
|
.ram(15*1024)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 3.25)))
|
.processors(ImmutableList.of(new Processor(8.0, 3.25)))
|
||||||
.volumes(
|
.volumes(ImmutableList.<Volume> of(
|
||||||
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(60.0f,
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
"/dev/sdb", false, false)))
|
new VolumeBuilder().type(LOCAL).size(60.0f).device("/dev/sdb").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,8 +499,9 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.I2_XLARGE)
|
return new EC2HardwareBuilder(InstanceType.I2_XLARGE)
|
||||||
.ram(30 * 1024 + 512)
|
.ram(30 * 1024 + 512)
|
||||||
.processors(ImmutableList.of(new Processor(4.0, 3.5)))
|
.processors(ImmutableList.of(new Processor(4.0, 3.5)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
.volumes(ImmutableList.<Volume> of(
|
||||||
new VolumeImpl(800.0f, "/dev/sdb", false, false)))
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdb").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,9 +512,10 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.I2_2XLARGE)
|
return new EC2HardwareBuilder(InstanceType.I2_2XLARGE)
|
||||||
.ram(61 * 1024)
|
.ram(61 * 1024)
|
||||||
.processors(ImmutableList.of(new Processor(8.0, 3.375)))
|
.processors(ImmutableList.of(new Processor(8.0, 3.375)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
.volumes(ImmutableList.<Volume> of(
|
||||||
new VolumeImpl(800.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdc", false, false)))
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdc").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -483,11 +526,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.I2_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.I2_4XLARGE)
|
||||||
.ram(122 * 1024)
|
.ram(122 * 1024)
|
||||||
.processors(ImmutableList.of(new Processor(16.0, 3.3125)))
|
.processors(ImmutableList.of(new Processor(16.0, 3.3125)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
.volumes(ImmutableList.<Volume> of(
|
||||||
new VolumeImpl(800.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdc", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdd", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdc").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sde", false, false)))
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdd").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sde").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -498,15 +542,16 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.I2_8XLARGE)
|
return new EC2HardwareBuilder(InstanceType.I2_8XLARGE)
|
||||||
.ram(244 * 1024)
|
.ram(244 * 1024)
|
||||||
.processors(ImmutableList.of(new Processor(32.0, 3.25)))
|
.processors(ImmutableList.of(new Processor(32.0, 3.25)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
|
.volumes(ImmutableList.<Volume> of(
|
||||||
new VolumeImpl(800.0f, "/dev/sdb", false, false),
|
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdc", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdd", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdc").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sde", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdd").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdf", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sde").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdg", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdf").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdh", false, false),
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdg").bootDevice(false).durable(false).build(),
|
||||||
new VolumeImpl(800.0f, "/dev/sdi", false, false)))
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdh").bootDevice(false).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(800.0f).device("/dev/sdi").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -514,18 +559,19 @@ public class EC2HardwareBuilder extends HardwareBuilder {
|
||||||
return new EC2HardwareBuilder(InstanceType.HI1_4XLARGE)
|
return new EC2HardwareBuilder(InstanceType.HI1_4XLARGE)
|
||||||
.ram(60 * 1024 + 512)
|
.ram(60 * 1024 + 512)
|
||||||
.processors(ImmutableList.of(new Processor(16.0, 2.1875)))
|
.processors(ImmutableList.of(new Processor(16.0, 2.1875)))
|
||||||
.volumes(ImmutableList.<Volume> of(new VolumeImpl(1024.0f, "/dev/sda1", true, false),
|
.volumes(ImmutableList.<Volume> of(
|
||||||
new VolumeImpl(1024.0f, "/dev/sdb", false, false)))
|
new VolumeBuilder().type(LOCAL).size(1024.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
|
||||||
|
new VolumeBuilder().type(LOCAL).size(1024.0f).device("/dev/sdb").bootDevice(false).durable(false).build()))
|
||||||
.virtualizationType(VirtualizationType.HVM);
|
.virtualizationType(VirtualizationType.HVM);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EC2HardwareBuilder hs1_8xlarge() {
|
public static EC2HardwareBuilder hs1_8xlarge() {
|
||||||
float twoTB = 2048.0f * 1024.0f;
|
float twoTB = 2048.0f * 1024.0f;
|
||||||
Builder<Volume> all24Volumes = ImmutableList.<Volume>builder();
|
Builder<Volume> all24Volumes = ImmutableList.<Volume>builder();
|
||||||
all24Volumes.add(new VolumeImpl(twoTB, "/dev/sda1", true, false));
|
all24Volumes.add(new VolumeBuilder().type(LOCAL).size(twoTB).device("/dev/sda1").bootDevice(true).durable(false).build());
|
||||||
for (char letter : ImmutableSet.of('b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
|
for (char letter : ImmutableSet.of('b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
|
||||||
'q', 'r', 's', 't', 'u', 'v', 'w', 'x')) {
|
'q', 'r', 's', 't', 'u', 'v', 'w', 'x')) {
|
||||||
all24Volumes.add(new VolumeImpl(twoTB, "/dev/sd" + letter, false, false));
|
all24Volumes.add(new VolumeBuilder().type(LOCAL).size(twoTB).device("/dev/sd" + letter).bootDevice(false).durable(false).build());
|
||||||
}
|
}
|
||||||
return new EC2HardwareBuilder(InstanceType.HS1_8XLARGE)
|
return new EC2HardwareBuilder(InstanceType.HS1_8XLARGE)
|
||||||
.ram(117 * 1024)
|
.ram(117 * 1024)
|
||||||
|
|
|
@ -27,6 +27,7 @@ package org.jclouds.ec2.domain;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class InstanceType {
|
public class InstanceType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Micro Instance
|
* Micro Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -37,6 +38,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String T1_MICRO = "t1.micro";
|
public static final String T1_MICRO = "t1.micro";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Small Instance
|
* Small Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -48,6 +50,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M1_SMALL = "m1.small";
|
public static final String M1_SMALL = "m1.small";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Medium Instance
|
* Medium Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -59,6 +62,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M1_MEDIUM = "m1.medium";
|
public static final String M1_MEDIUM = "m1.medium";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Large Instance
|
* Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -70,6 +74,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M1_LARGE = "m1.large";
|
public static final String M1_LARGE = "m1.large";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extra Large Instance
|
* Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -81,6 +86,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M1_XLARGE = "m1.xlarge";
|
public static final String M1_XLARGE = "m1.xlarge";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-Memory Extra Large Instance
|
* High-Memory Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -93,6 +99,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M2_XLARGE = "m2.xlarge";
|
public static final String M2_XLARGE = "m2.xlarge";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-Memory Double Extra Large Instance
|
* High-Memory Double Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -105,6 +112,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M2_2XLARGE = "m2.2xlarge";
|
public static final String M2_2XLARGE = "m2.2xlarge";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-Memory Quadruple Extra Large Instance
|
* High-Memory Quadruple Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -117,6 +125,31 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M2_4XLARGE = "m2.4xlarge";
|
public static final String M2_4XLARGE = "m2.4xlarge";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* M3 Medium Instance
|
||||||
|
* <ul>
|
||||||
|
* <li>3.75 GiB memory</li>
|
||||||
|
* <li>3 EC2 Compute Units (1 virtual core with 3 EC2 Compute Units)</li>
|
||||||
|
* <li>1 SSD-based volume with 4 GiB of instance storage</li>
|
||||||
|
* <li>32-bit or 64-bit platform</li>
|
||||||
|
* <li>I/O Performance: Moderate</li>
|
||||||
|
* </ul>
|
||||||
|
*/
|
||||||
|
public static final String M3_MEDIUM = "m3.medium";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* M3 Large Instance
|
||||||
|
* <ul>
|
||||||
|
* <li>7 GiB memory</li>
|
||||||
|
* <li>6.5 EC2 Compute Units (2 virtual cores with 3.25 EC2 Compute Units each)</li>
|
||||||
|
* <li>1 SSD-based volume with 32 GiB of instance storage</li>
|
||||||
|
* <li>32-bit or 64-bit platform</li>
|
||||||
|
* <li>I/O Performance: Moderate</li>
|
||||||
|
* </ul>
|
||||||
|
*/
|
||||||
|
public static final String M3_LARGE = "m3.large";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M3 Extra Large Instance
|
* M3 Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -128,6 +161,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M3_XLARGE = "m3.xlarge";
|
public static final String M3_XLARGE = "m3.xlarge";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M3 Double Extra Large Instance
|
* M3 Double Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -139,6 +173,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String M3_2XLARGE = "m3.2xlarge";
|
public static final String M3_2XLARGE = "m3.2xlarge";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-CPU Medium Instance
|
* High-CPU Medium Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -150,6 +185,7 @@ public class InstanceType {
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static final String C1_MEDIUM = "c1.medium";
|
public static final String C1_MEDIUM = "c1.medium";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-CPU Extra Large Instance
|
* High-CPU Extra Large Instance
|
||||||
* <ul>
|
* <ul>
|
||||||
|
|
|
@ -18,12 +18,20 @@ package org.jclouds.aws.ec2.compute.suppliers;
|
||||||
|
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c1_medium;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c1_medium;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c1_xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c1_xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c3_2xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c3_4xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c3_8xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.c3_xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cc1_4xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cc1_4xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cc2_8xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cc2_8xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cg1_4xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.cg1_4xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.g2_2xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.g2_2xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.hi1_4xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.hi1_4xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.hs1_8xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.hs1_8xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.i2_2xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.i2_4xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.i2_8xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.i2_xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_large;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_large;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_medium;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_medium;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_small;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_small;
|
||||||
|
@ -31,8 +39,10 @@ import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m1_xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_2xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_2xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_4xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_4xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m2_xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_xlarge;
|
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_2xlarge;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_2xlarge;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_large;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_medium;
|
||||||
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.m3_xlarge;
|
||||||
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.t1_micro;
|
import static org.jclouds.ec2.compute.domain.EC2HardwareBuilder.t1_micro;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -70,9 +80,30 @@ public class AWSEC2HardwareSupplier extends EC2HardwareSupplier {
|
||||||
sizes.add(hi1_4xlarge().supportsImageIds(ccAmis).build());
|
sizes.add(hi1_4xlarge().supportsImageIds(ccAmis).build());
|
||||||
sizes.add(hs1_8xlarge().supportsImageIds(ccAmis).build());
|
sizes.add(hs1_8xlarge().supportsImageIds(ccAmis).build());
|
||||||
sizes.add(g2_2xlarge().supportsImageIds(ccAmis).build());
|
sizes.add(g2_2xlarge().supportsImageIds(ccAmis).build());
|
||||||
sizes.addAll(ImmutableSet.<Hardware> of(t1_micro().build(), c1_medium().build(), c1_xlarge().build(), m1_large()
|
|
||||||
.build(), m1_small().build(), m1_medium().build(), m1_xlarge().build(), m2_xlarge().build(),
|
sizes.add(t1_micro().build());
|
||||||
m2_2xlarge().build(), m2_4xlarge().build(), m3_xlarge().build(), m3_2xlarge().build()));
|
sizes.add(c1_medium().build());
|
||||||
|
sizes.add(c1_xlarge().build());
|
||||||
|
sizes.add(c3_xlarge().build());
|
||||||
|
sizes.add(c3_2xlarge().build());
|
||||||
|
sizes.add(c3_4xlarge().build());
|
||||||
|
sizes.add(c3_8xlarge().build());
|
||||||
|
sizes.add(i2_xlarge().build());
|
||||||
|
sizes.add(i2_2xlarge().build());
|
||||||
|
sizes.add(i2_4xlarge().build());
|
||||||
|
sizes.add(i2_8xlarge().build());
|
||||||
|
sizes.add(m1_large().build());
|
||||||
|
sizes.add(m1_small().build());
|
||||||
|
sizes.add(m1_medium().build());
|
||||||
|
sizes.add(m1_xlarge().build());
|
||||||
|
sizes.add(m2_xlarge().build());
|
||||||
|
sizes.add(m2_2xlarge().build());
|
||||||
|
sizes.add(m2_4xlarge().build());
|
||||||
|
sizes.add(m3_medium().build());
|
||||||
|
sizes.add(m3_large().build());
|
||||||
|
sizes.add(m3_xlarge().build());
|
||||||
|
sizes.add(m3_2xlarge().build());
|
||||||
|
|
||||||
return sizes.build();
|
return sizes.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue