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 Details

    • listSyncProjections

      io.reactivex.rxjava3.core.Observable<DatastoreIdentity> listSyncProjections(Long cloudId)
      Get a list of Datastore 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 cloud
      accountId - The id of the account
      Returns:
      The default image Datastore
    • listById

      io.reactivex.rxjava3.core.Observable<Datastore> listById(Collection<Long> ids)
      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 delete
      zonePool - CloudPoolIdentity representing the associated zonePool for the datastore
      Returns:
      success