public class Ec2BoxCreator extends BaseS3
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_AMI |
ACCESS_KEY, ACCESS_SECRET, accessKey, AWS_ACCESS_KEY, AWS_SECRET_KEY, creds, secretKey, serialVersionUID
Constructor and Description |
---|
Ec2BoxCreator(int numBoxes,
java.lang.String size,
java.lang.String securityGroupId,
java.lang.String keyPair) |
Ec2BoxCreator(java.lang.String amiId,
int numBoxes,
java.lang.String size,
java.lang.String securityGroupId,
java.lang.String keyPair) |
Modifier and Type | Method and Description |
---|---|
boolean |
allRunning() |
void |
blockTillAllRunning() |
java.util.List<com.amazonaws.services.ec2.model.InstanceStateChange> |
blowupBoxes() |
void |
create()
Create the instances
|
void |
createSpot() |
java.util.List<java.lang.String> |
getBoxesCreated() |
java.util.List<java.lang.String> |
getHosts() |
void |
setRegion(com.amazonaws.regions.Regions regions) |
public static final java.lang.String DEFAULT_AMI
public Ec2BoxCreator(int numBoxes, java.lang.String size, java.lang.String securityGroupId, java.lang.String keyPair)
numBoxes
- number of boxessize
- the size of the instancespublic Ec2BoxCreator(java.lang.String amiId, int numBoxes, java.lang.String size, java.lang.String securityGroupId, java.lang.String keyPair)
amiId
- amazon image idnumBoxes
- number of boxessize
- the size of the instancessecurityGroupId
- public void createSpot()
public void setRegion(com.amazonaws.regions.Regions regions)
public void create()
public java.util.List<com.amazonaws.services.ec2.model.InstanceStateChange> blowupBoxes()
public void blockTillAllRunning()
public boolean allRunning()
public java.util.List<java.lang.String> getHosts()
public java.util.List<java.lang.String> getBoxesCreated()