Package com.morpheusdata.core.backup
Interface MorpheusReplicationGroupService
- All Superinterfaces:
MorpheusDataQueryService<ReplicationGroup>,MorpheusDataService<ReplicationGroup,,ReplicationGroupIdentityProjection> MorpheusIdentityService<ReplicationGroupIdentityProjection>
public interface MorpheusReplicationGroupService
extends MorpheusDataService<ReplicationGroup,ReplicationGroupIdentityProjection>, MorpheusIdentityService<ReplicationGroupIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>create(List<ReplicationGroup> addList) Deprecated.io.reactivex.rxjava3.core.Observable<ReplicationGroupIdentityProjection>listById(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<ReplicationGroupIdentityProjection>listIdentityProjections(BackupProvider backupProvider) Lists all backup projection objects for a specified replication group id.io.reactivex.rxjava3.core.Observable<ReplicationGroupIdentityProjection>listIdentityProjections(Cloud cloud) Lists all backup projection objects for a specified cloud.io.reactivex.rxjava3.core.Single<Boolean>remove(List<ReplicationGroupIdentityProjection> removeList) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>save(List<ReplicationGroup> 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
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<ReplicationGroupIdentityProjection> listIdentityProjections(BackupProvider backupProvider) Lists all backup projection objects for a specified replication group id. The projection is a subset of the properties on a fullReplicationGroupobject for sync matching.- Parameters:
backupProvider- theAbstractBackupProvideridentifier associated to the replication groups to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<ReplicationGroupIdentityProjection> listIdentityProjections(Cloud cloud) Lists all backup projection objects for a specified cloud. The projection is a subset of the properties on a fullReplicationGroupobject 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<ReplicationGroupIdentityProjection> listById(Collection<Long> ids) Deprecated.Lists allReplicationGroupobjects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids- list ofReplicationGroupids to fetch.- Returns:
- an RxJava Observable stream of
ReplicationGroupobjects for subscription.
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<ReplicationGroupIdentityProjection> 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<ReplicationGroup,ReplicationGroupIdentityProjection> - 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<ReplicationGroup> addList) Deprecated.Creates new Backup Domains from cache / sync implementations- Specified by:
createin interfaceMorpheusDataService<ReplicationGroup,ReplicationGroupIdentityProjection> - Parameters:
addList- List of newReplicationGroupobjects 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<ReplicationGroup> saveList) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)insteadSaves a list ofReplicationGroupobjects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Specified by:
savein interfaceMorpheusDataService<ReplicationGroup,ReplicationGroupIdentityProjection> - Parameters:
saveList- a List of Replication Group 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