Package com.morpheusdata.core.backup
Interface MorpheusBackupRestoreService
-
public interface MorpheusBackupRestoreService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<BackupRestore> addList)
Creates new Backup Restore Domains from cache / sync implementationsio.reactivex.Observable<BackupRestoreIdentityProjection>
listById(java.util.Collection<java.lang.Long> ids)
Lists allBackupRestore
objects by a list of Identifiers.io.reactivex.Observable<BackupRestoreIdentityProjection>
listIdentityProjections(Backup backup)
Lists all backup projection objects for a specified backup id.io.reactivex.Observable<BackupRestoreIdentityProjection>
listIdentityProjections(BackupProvider backupProvider)
Lists all backup projection objects for a specified backup provider id.io.reactivex.Observable<BackupRestoreIdentityProjection>
listIdentityProjections(BackupResult backupResult)
Lists all backup projection objects for a specified backup result id.io.reactivex.Single<java.lang.Boolean>
remove(java.util.List<BackupRestoreIdentityProjection> removeList)
Removes Missing Backup Restore on the Morpheus side.io.reactivex.Single<Backup>
save(BackupRestore backupRestore)
Saves aBackupRestore
object.io.reactivex.Single<java.lang.Boolean>
save(java.util.List<BackupRestore> saveList)
Saves a list ofBackupRestore
objects.
-
-
-
Method Detail
-
listIdentityProjections
io.reactivex.Observable<BackupRestoreIdentityProjection> listIdentityProjections(BackupProvider backupProvider)
Lists all backup projection objects for a specified backup provider id. The projection is a subset of the properties on a fullBackup
object for sync matching.- Parameters:
backupProvider
- theAbstractBackupProvider
identifier associated to the backups to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
io.reactivex.Observable<BackupRestoreIdentityProjection> listIdentityProjections(Backup backup)
Lists all backup projection objects for a specified backup id. The projection is a subset of the properties on a fullBackupRestore
object for sync matching.- Parameters:
backup
- theBackup
identifier associated to the backups to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
io.reactivex.Observable<BackupRestoreIdentityProjection> listIdentityProjections(BackupResult backupResult)
Lists all backup projection objects for a specified backup result id. The projection is a subset of the properties on a fullBackupRestore
object for sync matching.- Parameters:
backupResult
- theBackupResult
identifier associated to the backups to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listById
io.reactivex.Observable<BackupRestoreIdentityProjection> listById(java.util.Collection<java.lang.Long> ids)
Lists allBackupRestore
objects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids
- list ofBackupRestore
ids to fetch.- Returns:
- an RxJava Observable stream of
Backup
objects for subscription.
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<BackupRestoreIdentityProjection> removeList)
Removes Missing Backup Restore 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 occurExample:
morpheusContext.getBackup().getRestore().remove(removeItems).blockingGet()
- Parameters:
removeList
- a list of backup restore 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<BackupRestore> addList)
Creates new Backup Restore Domains from cache / sync implementations- Parameters:
addList
- List of newBackupRestore
objects to be inserted into the database- Returns:
- notification of completion
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<BackupRestore> saveList)
Saves a list ofBackupRestore
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 Restore 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<Backup> save(BackupRestore backupRestore)
Saves aBackupRestore
object. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Parameters:
backupRestore
- a Backup Object to be updated in the database.- Returns:
- the Single Observable containing the resulting Backup Object
-
-