Package com.morpheusdata.core.backup
Interface MorpheusBackupResultService
-
public interface MorpheusBackupResultService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<BackupResult> addList)
Creates new Backup Result Domains from cache / sync implementationsio.reactivex.Observable<BackupResultIdentityProjection>
listById(java.util.Collection<java.lang.Long> ids)
Lists allBackupResult
objects by a list of Identifiers.io.reactivex.Observable<BackupResultIdentityProjection>
listIdentityProjections(Backup backup)
Lists all backup result projection objects for a specified backup.io.reactivex.Observable<BackupResultIdentityProjection>
listIdentityProjections(BackupProvider backupProvider)
Lists all backup result projection objects for a specified backup provider id.io.reactivex.Observable<BackupResultIdentityProjection>
listIdentityProjectionsByAccount(java.lang.Long accountId, Backup backup)
Lists all backup result projection objects for a specified account ID and backup.io.reactivex.Single<java.lang.Boolean>
remove(java.util.List<BackupResultIdentityProjection> removeList)
Removes Missing Backup Result on the Morpheus side.io.reactivex.Single<BackupResult>
save(BackupResult backupResult)
Saves aBackupResult
object.io.reactivex.Single<java.lang.Boolean>
save(java.util.List<BackupResult> saveList)
Saves a list ofBackupResult
objects.
-
-
-
Method Detail
-
listIdentityProjections
io.reactivex.Observable<BackupResultIdentityProjection> listIdentityProjections(BackupProvider backupProvider)
Lists all backup result projection objects for a specified backup provider id. The projection is a subset of the properties on a fullBackupResult
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<BackupResultIdentityProjection> listIdentityProjections(Backup backup)
Lists all backup result projection objects for a specified backup. The projection is a subset of the properties on a fullBackupResult
object for sync matching.- Parameters:
backup
- theBackup
identifier associated to the domains to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjectionsByAccount
io.reactivex.Observable<BackupResultIdentityProjection> listIdentityProjectionsByAccount(java.lang.Long accountId, Backup backup)
Lists all backup result projection objects for a specified account ID and backup. The projection is a subset of the properties on a fullBackupResult
object for sync matching.
-
listById
io.reactivex.Observable<BackupResultIdentityProjection> listById(java.util.Collection<java.lang.Long> ids)
Lists allBackupResult
objects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids
- list ofBackupResult
ids to fetch.- Returns:
- an RxJava Observable stream of
BackupResult
objects for subscription.
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<BackupResultIdentityProjection> removeList)
Removes Missing Backup Result 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().getBackupResult().remove(removeItems).blockingGet()
- Parameters:
removeList
- a list of backup result 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<BackupResult> addList)
Creates new Backup Result Domains from cache / sync implementations- Parameters:
addList
- List of newBackupResult
objects to be inserted into the database- Returns:
- notification of completion
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<BackupResult> saveList)
Saves a list ofBackupResult
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 Result 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<BackupResult> save(BackupResult backupResult)
Saves aBackupResult
object. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Parameters:
backupResult
- a Backup Result Object to be updated in the database.- Returns:
- the Single Observable containing the resulting Backup Object
-
-