public class DuracloudInstanceManagerServiceImpl extends Object implements DuracloudInstanceManagerService
| Constructor and Description |
|---|
DuracloudInstanceManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr,
ComputeProviderUtil computeUtil,
DuracloudInstanceServiceFactory instanceServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
DuracloudInstanceService |
createInstance(Long accountId,
String version,
org.duracloud.account.db.model.InstanceType instanceType)
Starts a new instance for the given account based on the given
DuraCloud software version
|
protected org.duracloud.account.db.model.DuracloudInstance |
doCreateInstance(Long accountId,
org.duracloud.account.db.model.ServerImage image,
org.duracloud.account.db.model.InstanceType instanceType) |
DuracloudInstanceService |
getInstanceService(Long instanceId)
Retrieves the DuraCloud instance with the given ID wrapped in a class
which provides services on the instance.
|
Set<DuracloudInstanceService> |
getInstanceServices(Long accountId)
Retrieves the Set of DuraCloud instances associated with a given account,
wrapped in a class which provides services on the instances.
|
String |
getLatestVersion()
Retrieves the latest DuraCloud version
|
Set<String> |
getVersions()
Retrieves all of the active DuraCloud versions
|
public DuracloudInstanceManagerServiceImpl(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr,
ComputeProviderUtil computeUtil,
DuracloudInstanceServiceFactory instanceServiceFactory)
public Set<String> getVersions()
DuracloudInstanceManagerServicegetVersions in interface DuracloudInstanceManagerServicepublic String getLatestVersion()
DuracloudInstanceManagerServicegetLatestVersion in interface DuracloudInstanceManagerServicepublic DuracloudInstanceService createInstance(Long accountId, String version, org.duracloud.account.db.model.InstanceType instanceType)
DuracloudInstanceManagerServicecreateInstance in interface DuracloudInstanceManagerServiceprotected org.duracloud.account.db.model.DuracloudInstance doCreateInstance(Long accountId, org.duracloud.account.db.model.ServerImage image, org.duracloud.account.db.model.InstanceType instanceType)
public DuracloudInstanceService getInstanceService(Long instanceId) throws DuracloudInstanceNotAvailableException
DuracloudInstanceManagerServicegetInstanceService in interface DuracloudInstanceManagerServiceDuracloudInstanceNotAvailableExceptionpublic Set<DuracloudInstanceService> getInstanceServices(Long accountId)
DuracloudInstanceManagerServicegetInstanceServices in interface DuracloudInstanceManagerServiceCopyright © 2009–2016 DuraSpace. All rights reserved.