|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.duracloud.ec2typicacomputeprovider.mgmt.EC2ComputeProvider
public class EC2ComputeProvider
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
EC2ComputeProvider()
|
|
| Method Summary | |
|---|---|
InstanceDescription |
describeRunningInstance(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method retrieves description of initiated instance. |
com.xerox.amazonws.ec2.Jec2 |
getEC2()
|
EC2ComputeProviderProperties |
getProps()
|
java.net.URL |
getWebappURL(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method returns the URL of the instancewebapp on the instance with the provided id. |
boolean |
isInstanceBooting(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method returns true if the webapp of provided instance is currently booting. |
boolean |
isInstanceRunning(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method returns true if the instance is successfully running. |
boolean |
isWebappRunning(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method returns true if the webapp of provided instance is successfully running. |
void |
setEC2(com.xerox.amazonws.ec2.Jec2 ec2)
|
java.lang.String |
start(Credential credential,
java.lang.String xmlProps)
This method starts an instance-image with provided credential and Compute-provider properties. |
void |
stop(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
This method stops the running instance with provided id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger log
| Constructor Detail |
|---|
public EC2ComputeProvider()
| Method Detail |
|---|
public java.lang.String start(Credential credential,
java.lang.String xmlProps)
throws java.lang.Exception
start in interface ComputeProviderjava.lang.Exception
public void stop(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
throws java.lang.Exception
stop in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public InstanceDescription describeRunningInstance(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
describeRunningInstance in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public boolean isInstanceRunning(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
throws java.lang.Exception
isInstanceRunning in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public boolean isWebappRunning(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
throws java.lang.Exception
isWebappRunning in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public boolean isInstanceBooting(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
throws java.lang.Exception
isInstanceBooting in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public java.net.URL getWebappURL(Credential credential,
java.lang.String instanceId,
java.lang.String xmlProps)
throws java.lang.Exception
getWebappURL in interface ComputeProvidercredential - Compute-provider credentials
java.lang.Exception
public EC2ComputeProviderProperties getProps()
throws java.lang.Exception
java.lang.Exception
public com.xerox.amazonws.ec2.Jec2 getEC2()
throws java.lang.Exception
java.lang.Exceptionpublic void setEC2(com.xerox.amazonws.ec2.Jec2 ec2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||