Interface MorpheusReplicationSiteService


  • public interface MorpheusReplicationSiteService
    • Method Detail

      • listIdentityProjections

        io.reactivex.Observable<ReplicationSiteIdentityProjection> listIdentityProjections​(BackupProvider backupProvider)
        Lists all backup projection objects for a specified replication site id. The projection is a subset of the properties on a full ReplicationSite object for sync matching.
        Parameters:
        backupProvider - the AbstractBackupProvider identifier associated to the replication sites to be listed.
        Returns:
        an RxJava Observable stream of result projection objects.
      • listIdentityProjections

        io.reactivex.Observable<ReplicationSiteIdentityProjection> listIdentityProjections​(Cloud cloud)
        Lists all backup projection objects for a specified cloud. The projection is a subset of the properties on a full ReplicationSite object for sync matching.
        Parameters:
        cloud - the Cloud identifier associated to the domains to be listed.
        Returns:
        an RxJava Observable stream of result projection objects.
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<ReplicationSiteIdentityProjection> removeList)
        Removes Missing Backup on the Morpheus side. This accepts the Projection Object instead of the main Object. It is important to note this is a Observer pattern and must be subscribed to in order for the action to occur

        Example:

        
         morpheusContext.getBackup().remove(removeItems).blockingGet()
         
        Parameters:
        removeList - a list of backup projections to be removed
        Returns:
        a Single Observable returning the success status of the operation.
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<ReplicationSite> addList)
        Creates new Backup Domains from cache / sync implementations
        Parameters:
        addList - List of new ReplicationSite objects to be inserted into the database
        Returns:
        notification of completion
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<ReplicationSite> saveList)
        Saves a list of ReplicationSite objects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.
        Parameters:
        saveList - a List of Backup objects that need to be updated in the database.
        Returns:
        the Single Observable stating the success state of the save attempt
      • save

        io.reactivex.Single<ReplicationSite> save​(ReplicationSite replicationSite)
        Saves a ReplicationSite object. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.
        Parameters:
        replicationSite - a Replication Site Object to be updated in the database.
        Returns:
        the Single Observable containing the resulting Backup Object