ppe.ec2
Class ParamsEc2
java.lang.Object
ppe.AbstractParams
ppe.ec2.ParamsEc2
public class ParamsEc2
- extends AbstractParams
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceType
public com.amazonaws.services.ec2.model.InstanceType instanceType
imageID
public java.lang.String imageID
nInstances
public int nInstances
keyName
public java.lang.String keyName
rsaKeyPairFile
public java.io.File rsaKeyPairFile
- This keypair file must contain the PRIVATE key that matches
the public key specified by keyName (which is registered with
aws).
networkName
public java.lang.String networkName
- Identifies a set of ec2 instances that constitute an mpi
network. By default this is <user name>-<date>, e.g.
username-20110221
but it can be anything. This is just for convenience. Typically
it's a string that's easier to type (and remember) than the
#networkID
. It does not need to be unique.
useSpotInstances
public boolean useSpotInstances
spotPrice
public double spotPrice
useCluster
public boolean useCluster
clusterGroupName
public java.lang.String clusterGroupName
disableHyperthreading
public boolean disableHyperthreading
securityGroup
public java.lang.String securityGroup
ParamsEc2
public ParamsEc2(ParamHt ht)
throws java.lang.Exception
- Throws:
java.lang.Exception
setParamVal
protected void setParamVal(java.lang.String key,
java.lang.String val)
throws java.lang.Exception
- Specified by:
setParamVal
in class AbstractParams
- Throws:
java.lang.Exception
buildAWSCredentials
public com.amazonaws.auth.AWSCredentials buildAWSCredentials()
throws ParamMissingException
- Throws:
ParamMissingException
getAWSUserID
public java.lang.String getAWSUserID()
getMissingParamMessage
public java.lang.String getMissingParamMessage()
checkForConnectToAWSParams
public void checkForConnectToAWSParams()
throws ParamMissingException
- Throws:
ParamMissingException
checkForCreateNetworkParams
public void checkForCreateNetworkParams()
throws ParamMissingException
- Checks for required params, not for params that
may be supplied though a gui.
- Throws:
ParamMissingException
checkForNetworkInfoParams
public void checkForNetworkInfoParams()
throws ParamMissingException
- Throws:
ParamMissingException
checkForTerminateInstancesParams
public void checkForTerminateInstancesParams()
throws ParamMissingException
- Throws:
ParamMissingException
hasRequiredParams
public boolean hasRequiredParams()
- Checks whether the params that noramlly come from the config files
exist. These are the params needed to launch and access instances.
- Returns: