public interface ComputeProvider
This interface exposes basic management capabilities of ComputeProviders: start, stop, describe... It provides an abstraction layer from implementations such as: Amazon-EC2, Rackspace Cloud ...
| Modifier and Type | Method and Description |
|---|---|
InstanceDescription |
describeRunningInstance(Credential credential,
String instanceId,
String xmlProps)
This method retrieves description of initiated instance.
|
URL |
getWebappURL(Credential credential,
String instanceId,
String xmlProps)
This method returns the URL of the instancewebapp on the instance with
the provided id.
|
boolean |
isInstanceBooting(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the webapp of provided instance is currently
booting.
|
boolean |
isInstanceRunning(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the instance is successfully running.
|
boolean |
isWebappRunning(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the webapp of provided instance is
successfully running.
|
String |
start(Credential credential,
String xmlProps)
This method starts an instance-image with provided credential and
Compute-provider properties.
|
void |
stop(Credential credential,
String instanceId,
String xmlProps)
This method stops the running instance with provided id.
|
String start(Credential credential, String xmlProps) throws Exception
credential - props - Provider-specific propertiesExceptionvoid stop(Credential credential, String instanceId, String xmlProps) throws Exception
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesExceptionboolean isInstanceRunning(Credential credential, String instanceId, String xmlProps) throws Exception
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesExceptionboolean isWebappRunning(Credential credential, String instanceId, String xmlProps) throws Exception
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesExceptionboolean isInstanceBooting(Credential credential, String instanceId, String xmlProps) throws Exception
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesExceptionURL getWebappURL(Credential credential, String instanceId, String xmlProps) throws Exception
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesExceptionInstanceDescription describeRunningInstance(Credential credential, String instanceId, String xmlProps)
credential - Compute-provider credentialsinstanceId - props - Provider-specific propertiesCopyright © 2009–2015 DuraSpace. All rights reserved.