Package com.morpheusdata.core.backup
Interface MorpheusReplicationService
- All Superinterfaces:
MorpheusDataQueryService<Replication>
,MorpheusDataService<Replication,
,ReplicationIdentityProjection> MorpheusIdentityService<ReplicationIdentityProjection>
public interface MorpheusReplicationService
extends MorpheusDataService<Replication,ReplicationIdentityProjection>, MorpheusIdentityService<ReplicationIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<Replication> addList) Deprecated.Returns the MorpheusReplicationGroupContext used for performing updates/queries onReplicationGroup
related assets within Morpheus.Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationSite
related assets within Morpheus.getType()
Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationType
related assets within Morpheus.io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection>
listIdentityProjections
(BackupProvider backupProvider) Lists all backup projection objects for a specified replication id.io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection>
listIdentityProjections
(Cloud cloud) Lists all backup projection objects for a specified cloud.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<ReplicationIdentityProjection> removeList) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<Replication> 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
-
getReplicationGroup
MorpheusReplicationGroupService getReplicationGroup()Returns the MorpheusReplicationGroupContext used for performing updates/queries onReplicationGroup
related assets within Morpheus.- Returns:
- An instance of the MorpheusReplicationGroupContext to be used for calls by various backup providers
-
getReplicationSite
MorpheusReplicationSiteService getReplicationSite()Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationSite
related assets within Morpheus.- Returns:
- An instance of the BackupTypeContext to be used for calls by various backup providers
-
getType
MorpheusReplicationTypeService getType()Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationType
related assets within Morpheus.- Returns:
- An instance of the BackupTypeContext to be used for calls by various backup providers
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection> listIdentityProjections(BackupProvider backupProvider) Lists all backup projection objects for a specified replication id. The projection is a subset of the properties on a fullReplication
object for sync matching.- Parameters:
backupProvider
- theAbstractBackupProvider
identifier associated to the replications to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection> listIdentityProjections(Cloud cloud) Lists all backup projection objects for a specified cloud. The projection is a subset of the properties on a fullReplication
object for sync matching.- Parameters:
cloud
- theCloud
identifier associated to the domains to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReplicationIdentityProjection> listById(Collection<Long> ids) Deprecated.Lists allReplication
objects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids
- list ofReplication
ids to fetch.- Returns:
- an RxJava Observable stream of
Replication
objects for subscription.
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<ReplicationIdentityProjection> removeList) Deprecated.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 occurExample:
morpheusContext.getBackup().remove(removeItems).blockingGet()
- Specified by:
remove
in interfaceMorpheusDataService<Replication,
ReplicationIdentityProjection> - Parameters:
removeList
- a list of backup 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<Replication> addList) Deprecated.Creates new Backup Domains from cache / sync implementations- Specified by:
create
in interfaceMorpheusDataService<Replication,
ReplicationIdentityProjection> - Parameters:
addList
- List of newReplication
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<Replication> saveList) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSaves a list ofReplication
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<Replication,
ReplicationIdentityProjection> - 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
- See Also:
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead