public interface DuracloudComputeProvider
| Modifier and Type | Method and Description |
|---|---|
org.duracloud.account.db.model.InstanceType |
getInstanceType(String providerInstanceId)
Retrieves the instance type of the instance.
|
String |
getStatus(String providerInstanceId)
Retrieves the status of a running instance
|
void |
restart(String providerInstanceId)
Restarts a running instance.
|
String |
start(String providerImageId,
String iamRole,
String securityGroup,
String keyname,
String elasticIp,
org.duracloud.account.db.model.InstanceType instanceType,
String instanceName)
Starts a new instance based on the given server image.
|
void |
stop(String providerInstanceId)
Stops a running instance.
|
String start(String providerImageId, String iamRole, String securityGroup, String keyname, String elasticIp, org.duracloud.account.db.model.InstanceType instanceType, String instanceName)
providerImageId - the ID of the server image to use in creating
a new instanceiamRole - role to be associated with any instances startedsecurityGroup - the security group which is used to define the
firewall settings for an instancekeyname - the name of the key pair which can be used to access
the instance serverelasticIp - the IP address to be associated with this instanceinstanceType - the type of hardward to be used for the instanceinstanceName - the instance name that makes the instance easily
identifiable in the aws consolevoid stop(String providerInstanceId)
providerInstanceId - the ID of the instance as known by the providervoid restart(String providerInstanceId)
providerInstanceId - the ID of the instance as known by the providerString getStatus(String providerInstanceId) throws DuracloudInstanceNotAvailableException
providerInstanceId - the ID of the instance as known by the providerDuracloudInstanceNotAvailableExceptionorg.duracloud.account.db.model.InstanceType getInstanceType(String providerInstanceId) throws DuracloudInstanceNotAvailableException
DuracloudInstanceNotAvailableExceptionCopyright © 2009–2015 DuraSpace. All rights reserved.