com.norbl.cbp.ppe
Class NetworkSpec

java.lang.Object
  extended by com.norbl.cbp.ppe.NetworkSpec
All Implemented Interfaces:
java.io.Serializable

public class NetworkSpec
extends java.lang.Object
implements java.io.Serializable

Contains all variables needed to specify an ec2 network. Note that this does not include the aws credentials (which are used to create the AmazonEC2Client).

The NetworkSpec also includes userData (from spec.uid) which is optional.

See Also:
Serialized Form

Field Summary
 java.lang.String availabilityZone
           
 java.lang.String clusterGroupName
           
 boolean disableHyperThreading
           
 java.lang.String imageID
           
 com.amazonaws.services.ec2.model.InstanceType instanceType
           
 java.lang.String keyName
           
 java.lang.String networkName
           
 int nInstances
           
 java.lang.String securityGroupName
           
 int slotsPerHost
           
 double spotPrice
           
 boolean useCluster
           
 java.lang.String userData
           
 boolean useSpotInstances
           
 
Constructor Summary
NetworkSpec()
           
NetworkSpec(ParamsEc2 params)
          Note that the userData is taken from params.uid which may be null.
 
Method Summary
 NetworkSpec cloneSpec()
           
 boolean isComplete()
           
 java.lang.String listMissingParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

networkName

public java.lang.String networkName

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

securityGroupName

public java.lang.String securityGroupName

useSpotInstances

public boolean useSpotInstances

spotPrice

public double spotPrice

clusterGroupName

public java.lang.String clusterGroupName

useCluster

public boolean useCluster

slotsPerHost

public int slotsPerHost

disableHyperThreading

public boolean disableHyperThreading

availabilityZone

public java.lang.String availabilityZone

userData

public java.lang.String userData
Constructor Detail

NetworkSpec

public NetworkSpec(ParamsEc2 params)
Note that the userData is taken from params.uid which may be null.

Parameters:
params -

NetworkSpec

public NetworkSpec()
Method Detail

isComplete

public boolean isComplete()

listMissingParams

public java.lang.String listMissingParams()

cloneSpec

public NetworkSpec cloneSpec()