Package com.morpheusdata.core.backup
Interface MorpheusBackupRestoreService
- All Superinterfaces:
MorpheusDataQueryService<BackupRestore>
,MorpheusDataService<BackupRestore,
,BackupRestoreIdentityProjection> MorpheusIdentityService<BackupRestoreIdentityProjection>
public interface MorpheusBackupRestoreService
extends MorpheusDataService<BackupRestore,BackupRestoreIdentityProjection>, MorpheusIdentityService<BackupRestoreIdentityProjection>
Context methods for interacting with
BackupRestores
in Morpheus- Since:
- 0.13.4
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<BackupRestore> addList) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
finalizeRestore
(Workload workload) Trigger the provision finalize process on a restored workload.io.reactivex.rxjava3.core.Observable<BackupRestoreIdentityProjection>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<BackupRestoreIdentityProjection>
listIdentityProjections
(Backup backup) Lists all backup projection objects for a specified backup id.io.reactivex.rxjava3.core.Observable<BackupRestoreIdentityProjection>
listIdentityProjections
(BackupProvider backupProvider) Lists all backup projection objects for a specified backup provider id.io.reactivex.rxjava3.core.Observable<BackupRestoreIdentityProjection>
listIdentityProjections
(BackupResult backupResult) Lists all backup projection objects for a specified backup result id.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<BackupRestoreIdentityProjection> removeList) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<BackupRestore> saveList) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.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.rxjava3.core.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.rxjava3.core.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
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<BackupRestoreIdentityProjection> listById(Collection<Long> ids) Deprecated.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
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<BackupRestoreIdentityProjection> removeList) Deprecated.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()
- Specified by:
remove
in interfaceMorpheusDataService<BackupRestore,
BackupRestoreIdentityProjection> - Parameters:
removeList
- a list of backup restore projections to be removed- Returns:
- a Single
Observable
returning the success status of the operation. - See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<BackupRestore> addList) Deprecated.Creates new Backup Restore Domains from cache / sync implementations- Specified by:
create
in interfaceMorpheusDataService<BackupRestore,
BackupRestoreIdentityProjection> - Parameters:
addList
- List of newBackupRestore
objects to be inserted into the database- Returns:
- notification of completion
- See Also:
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<BackupRestore> saveList) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSaves a list ofBackupRestore
objects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Specified by:
save
in interfaceMorpheusDataService<BackupRestore,
BackupRestoreIdentityProjection> - 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
- See Also:
-
finalizeRestore
Trigger the provision finalize process on a restored workload.- Parameters:
workload
- the workload to be finalized- Returns:
- if the finalize process was triggered successfully
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead