Package com.morpheusdata.core.backup
Interface MorpheusReplicationGroupService
- All Superinterfaces:
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.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, count, create, find, get, list, listById, listOptions, remove, save, search
Methods 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 fullReplicationGroup
object for sync matching.- Parameters:
backupProvider
- theAbstractBackupProvider
identifier 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 fullReplicationGroup
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<ReplicationGroupIdentityProjection> listById(Collection<Long> ids) Deprecated.Lists allReplicationGroup
objects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids
- list ofReplicationGroup
ids to fetch.- Returns:
- an RxJava Observable stream of
ReplicationGroup
objects 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:
remove
in interfaceMorpheusDataService<ReplicationGroup,
ReplicationGroupIdentityProjection> - 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<ReplicationGroup> addList) Deprecated.Creates new Backup Domains from cache / sync implementations- Specified by:
create
in interfaceMorpheusDataService<ReplicationGroup,
ReplicationGroupIdentityProjection> - Parameters:
addList
- List of newReplicationGroup
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<ReplicationGroup> saveList) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSaves a list ofReplicationGroup
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<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