com.xerox.amazonws.ec2
Class LaunchConfiguration

java.lang.Object
  extended by com.xerox.amazonws.ec2.LaunchConfiguration

public class LaunchConfiguration
extends Object

A launch configuration encapsulates the parameters used for launching an AMI

Author:
Moritz Post

Constructor Summary
LaunchConfiguration(String imageId)
          Launches the given AMI one time.
LaunchConfiguration(String imageId, int minCount, int maxCount)
          The launch parameter with the minimum required number of parameter.
LaunchConfiguration(String configName, String imageId, int minCount, int maxCount)
          The launch parameter with the name being supplied.
 
Method Summary
 String getAdditionalInfo()
           
 String getAvailabilityZone()
           
 List<BlockDeviceMapping> getBlockDevicemappings()
           
 String getConfigName()
           
 String getGroupName()
           
 String getImageId()
           
 InstanceType getInstanceType()
           
 String getKernelId()
           
 String getKeyName()
           
 int getMaxCount()
           
 int getMinCount()
           
 String getPrivateIpAddress()
           
 String getRamdiskId()
           
 List<String> getSecurityGroup()
           
 String getSubnetId()
           
 byte[] getUserData()
           
 Boolean isMonitoring()
           
 Boolean isPublicAddressing()
           
 void setAdditionalInfo(String additionalInfo)
           
 void setAvailabilityZone(String availabilityZone)
           
 void setBlockDevicemappings(List<BlockDeviceMapping> blockDeviceMappings)
           
 void setConfigName(String configName)
           
 void setGroupName(String groupName)
           
 void setImageId(String imageId)
           
 void setInstanceType(InstanceType instanceType)
           
 void setKernelId(String kernelId)
           
 void setKeyName(String keyName)
           
 void setMaxCount(int maxCount)
           
 void setMinCount(int minCount)
           
 void setMonitoring(boolean set)
           
 void setPrivateIpAddress(String privateIpAddress)
           
 void setPublicAddressing(boolean set)
          For some eucaluptus clusters, need to set this false (=private)
 void setRamdiskId(String ramdiskId)
           
 void setSecurityGroup(List<String> securityGroup)
           
 void setSubnetId(String subnetId)
           
 void setUserData(byte[] userData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaunchConfiguration

public LaunchConfiguration(String imageId)
Launches the given AMI one time. The min and max values are '1'.

Parameters:
imageId - the AMI to launch

LaunchConfiguration

public LaunchConfiguration(String imageId,
                           int minCount,
                           int maxCount)
The launch parameter with the minimum required number of parameter.

Parameters:
imageId - the id of the AMI to launch
minCount - the minimum required number of instances
maxCount - the maximum number of AMIs desired

LaunchConfiguration

public LaunchConfiguration(String configName,
                           String imageId,
                           int minCount,
                           int maxCount)
The launch parameter with the name being supplied.

Parameters:
configName - the name given to this launch config
imageId - the id of the AMI to launch
minCount - the minimum required number of instances
maxCount - the maximum number of AMIs desired
Method Detail

getConfigName

public String getConfigName()
Returns:
the configName

setConfigName

public void setConfigName(String configName)
Parameters:
configName - the configName to set

getImageId

public String getImageId()
Returns:
the imageId

setImageId

public void setImageId(String imageId)
Parameters:
imageId - the imageId to set

getMinCount

public int getMinCount()
Returns:
the minCount

setMinCount

public void setMinCount(int minCount)
Parameters:
minCount - the minCount to set

getMaxCount

public int getMaxCount()
Returns:
the maxCount

setMaxCount

public void setMaxCount(int maxCount)
Parameters:
maxCount - the maxCount to set

getKeyName

public String getKeyName()
Returns:
the keyName

setKeyName

public void setKeyName(String keyName)
Parameters:
keyName - the keyName to set

getSecurityGroup

public List<String> getSecurityGroup()
Returns:
the securityGroup

setSecurityGroup

public void setSecurityGroup(List<String> securityGroup)
Parameters:
securityGroup - the securityGroup to set

getAvailabilityZone

public String getAvailabilityZone()
Returns:
the AvailabilityZone

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
Parameters:
availabilityZone - the AvailabilityZone to set

getInstanceType

public InstanceType getInstanceType()
Returns:
the instanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
Parameters:
instanceType - the instanceType to set

getUserData

public byte[] getUserData()
Returns:
the userData

setUserData

public void setUserData(byte[] userData)
Parameters:
userData - the userData to set

getAdditionalInfo

public String getAdditionalInfo()
Returns:
the additionalInfo

setAdditionalInfo

public void setAdditionalInfo(String additionalInfo)
Parameters:
additionalInfo - the additionalInfo to set

getKernelId

public String getKernelId()
Returns:
the kernelId

setKernelId

public void setKernelId(String kernelId)
Parameters:
kernelId - the kernelId to set

getRamdiskId

public String getRamdiskId()
Returns:
the ramdiskId

setRamdiskId

public void setRamdiskId(String ramdiskId)
Parameters:
ramdiskId - the ramdiskId to set

getBlockDevicemappings

public List<BlockDeviceMapping> getBlockDevicemappings()
Returns:
the blockDeviceMappings

setBlockDevicemappings

public void setBlockDevicemappings(List<BlockDeviceMapping> blockDeviceMappings)
Parameters:
blockDeviceMappings - the blockDeviceMappings to set

isMonitoring

public Boolean isMonitoring()
Returns:
state of instance monitoring

setMonitoring

public void setMonitoring(boolean set)
Parameters:
sets - the state of instance monitoring

isPublicAddressing

public Boolean isPublicAddressing()
Returns:
if addressing is set to public

getSubnetId

public String getSubnetId()
Returns:
the subnetId

setSubnetId

public void setSubnetId(String subnetId)
Parameters:
subnetId - the subnetId to set

getPrivateIpAddress

public String getPrivateIpAddress()
Returns:
the privateIpAddress

setPrivateIpAddress

public void setPrivateIpAddress(String privateIpAddress)
Parameters:
privateIpAddress - the privateIpAddress to set

getGroupName

public String getGroupName()
Returns:
the groupName used with cluster compute instances

setGroupName

public void setGroupName(String groupName)
Parameters:
groupName - the groupName to set

setPublicAddressing

public void setPublicAddressing(boolean set)
For some eucaluptus clusters, need to set this false (=private)

Parameters:
sets - the public addressing mode (true by default)