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 propertiesException
void stop(Credential credential, String instanceId, String xmlProps) throws Exception
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesException
boolean isInstanceRunning(Credential credential, String instanceId, String xmlProps) throws Exception
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesException
boolean isWebappRunning(Credential credential, String instanceId, String xmlProps) throws Exception
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesException
boolean isInstanceBooting(Credential credential, String instanceId, String xmlProps) throws Exception
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesException
URL getWebappURL(Credential credential, String instanceId, String xmlProps) throws Exception
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesException
InstanceDescription describeRunningInstance(Credential credential, String instanceId, String xmlProps)
credential
- Compute-provider credentialsinstanceId
- props
- Provider-specific propertiesCopyright © 2009–2014 DuraSpace. All rights reserved.