|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fzi.kadmos.cloud.aws.AWSAdapter
public class AWSAdapter
Class hiding the communication with Amazon Web services via typica.
Constructor Summary | |
---|---|
AWSAdapter(String AWSID,
String AWSSEC)
Creates a new AWSAdapter . |
Method Summary | |
---|---|
String |
getGlobalDNS(String instanceID)
Returns the global DNS of AMI with ID instance. |
String |
getLocalDNS(String instanceID)
Returns the local DNS of AMI with ID instance. |
String |
startInstance(String imageID,
String instanceType,
String secGroup,
String keyPair,
String userdata)
Starts one AWS instance. |
void |
terminateInstance(String id)
Terminates the instance. |
void |
waitForInstanceToBoot(String id)
Waits for the instance with specified ID to be in running state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWSAdapter(String AWSID, String AWSSEC)
AWSAdapter
.
AWSID
- Access key IDAWSSEC
- Secret access keyMethod Detail |
---|
public String startInstance(String imageID, String instanceType, String secGroup, String keyPair, String userdata) throws CloudException
imageID
- ID of the used image.instanceType
- Instance type (example: m1.small)secGroup
- Security group to be used.keyPair
- key pair to be used.userdata
- Data to be send to the instance
CloudException
public void waitForInstanceToBoot(String id) throws CloudException
id
- ID of the instance to wait for.
CloudException
public void terminateInstance(String id) throws CloudException
CloudException
public String getGlobalDNS(String instanceID) throws CloudException
CloudException
public String getLocalDNS(String instanceID) throws CloudException
CloudException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |