Package com.morpheusdata.core.cloud
Interface MorpheusDatastoreService
-
public interface MorpheusDatastoreService
Context methods for syncingDatastore
in Morpheus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<Datastore> datastores)
Create new Datastores in Morpheusio.reactivex.Single<Datastore>
getDefaultImageDatastoreForAccount(java.lang.Long cloudId, java.lang.Long accountId)
Get the default image Datastoreio.reactivex.Observable<Datastore>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of Datastore objects from a list of projection idsio.reactivex.Observable<DatastoreIdentityProjection>
listSyncProjections(java.lang.Long cloudId)
Get a list ofDatastore
projections based on Cloud idio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<DatastoreIdentityProjection> datastores, ComputeZonePoolIdentityProjection zonePool)
Remove persisted Datastore from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<Datastore> datastores)
Save updates to existing Datastores
-
-
-
Method Detail
-
listSyncProjections
io.reactivex.Observable<DatastoreIdentityProjection> listSyncProjections(java.lang.Long cloudId)
Get a list ofDatastore
projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
getDefaultImageDatastoreForAccount
io.reactivex.Single<Datastore> getDefaultImageDatastoreForAccount(java.lang.Long cloudId, java.lang.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
io.reactivex.Observable<Datastore> listById(java.util.Collection<java.lang.Long> ids)
Get a list of Datastore objects from a list of projection ids- Parameters:
ids
- Datastore ids- Returns:
- Observable stream of Datastores
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<Datastore> datastores)
Save updates to existing Datastores- Parameters:
datastores
- updated Datastore- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<Datastore> datastores)
Create new Datastores in Morpheus- Parameters:
datastores
- new Datastores to persist- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<DatastoreIdentityProjection> datastores, ComputeZonePoolIdentityProjection zonePool)
Remove persisted Datastore from Morpheus- Parameters:
datastores
- Datastores to deletezonePool
- ComputeZonePoolIdentityProjection representing the associated zonePool for the datastore- Returns:
- success
-
-