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 onReplicationGrouprelated assets within Morpheus.Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationSiterelated assets within Morpheus.getType()Returns the MorpheusReplicationTypeContext used for performing updates/queries onReplicationTyperelated 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, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
getReplicationGroup
MorpheusReplicationGroupService getReplicationGroup()Returns the MorpheusReplicationGroupContext used for performing updates/queries onReplicationGrouprelated 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 onReplicationSiterelated 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 onReplicationTyperelated 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 fullReplicationobject for sync matching.- Parameters:
backupProvider- theAbstractBackupProvideridentifier 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 fullReplicationobject for sync matching.- Parameters:
cloud- theCloudidentifier 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 allReplicationobjects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids- list ofReplicationids to fetch.- Returns:
- an RxJava Observable stream of
Replicationobjects 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:
removein interfaceMorpheusDataService<Replication,ReplicationIdentityProjection> - Parameters:
removeList- a list of backup projections to be removed- Returns:
- a Single
Observablereturning 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:
createin interfaceMorpheusDataService<Replication,ReplicationIdentityProjection> - Parameters:
addList- List of newReplicationobjects 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 ofReplicationobjects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Specified by:
savein 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