Interface MorpheusDatastoreService


  • public interface MorpheusDatastoreService
    Context methods for syncing Datastore in Morpheus
    • Method Detail

      • listSyncProjections

        io.reactivex.Observable<DatastoreIdentityProjection> listSyncProjections​(java.lang.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.Single<Datastore> getDefaultImageDatastoreForAccount​(java.lang.Long cloudId,
                                                                          java.lang.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.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 delete
        zonePool - ComputeZonePoolIdentityProjection representing the associated zonePool for the datastore
        Returns:
        success