Package com.morpheusdata.core.cloud
Interface MorpheusDatastoreService
- All Superinterfaces:
MorpheusDataQueryService<Datastore>
,MorpheusDataService<Datastore,
,DatastoreIdentity> MorpheusIdentityService<DatastoreIdentity>
public interface MorpheusDatastoreService
extends MorpheusDataService<Datastore,DatastoreIdentity>, MorpheusIdentityService<DatastoreIdentity>
Context methods for syncing
Datastore
in Morpheus-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Datastore>
getDefaultImageDatastoreForAccount
(Long cloudId, Long accountId) Get the default image Datastoreio.reactivex.rxjava3.core.Observable<Datastore>
listById
(Collection<Long> ids) Get a list of Datastore objects from a list of projection idsio.reactivex.rxjava3.core.Observable<DatastoreIdentity>
listSyncProjections
(Long cloudId) Get a list ofDatastore
projections based on Cloud idio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<DatastoreIdentity> datastores, CloudPoolIdentity zonePool) Remove persisted Datastore from MorpheusMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listSyncProjections
Get a list ofDatastore
projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
getDefaultImageDatastoreForAccount
io.reactivex.rxjava3.core.Single<Datastore> getDefaultImageDatastoreForAccount(Long cloudId, Long accountId) Get the default image Datastore- Parameters:
cloudId
- The id of the cloudaccountId
- The id of the account- Returns:
- The default image Datastore
-
listById
Get a list of Datastore objects from a list of projection ids- Parameters:
ids
- Datastore ids- Returns:
- Observable stream of Datastores
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<DatastoreIdentity> datastores, CloudPoolIdentity zonePool) Remove persisted Datastore from Morpheus- Parameters:
datastores
- Datastores to deletezonePool
- CloudPoolIdentity representing the associated zonePool for the datastore- Returns:
- success
-