Interface MorpheusStorageReplicationGroupService
- All Superinterfaces:
MorpheusDataQueryService<StorageReplicationGroup>,MorpheusDataService<StorageReplicationGroup,,StorageReplicationGroupIdentityProjection> MorpheusIdentityService<StorageReplicationGroupIdentityProjection>
StorageReplicationGroup in Morpheus.
A replication group tracks the RPO, lag and failover state for a set of volumes
being replicated to a StorageReplicationPartner.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationGroup>>createReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, Map<String, Object> opts) Create a new replication group on the storage server.io.reactivex.rxjava3.core.Single<ServiceResponse>deleteReplicationGroup(StorageReplicationGroup group, Map<String, Object> opts) Delete a replication group.io.reactivex.rxjava3.core.Observable<StorageReplicationGroupIdentityProjection>listIdentityProjections(Long storageServerId) List identity projections for all replication groups belonging to a storage server.io.reactivex.rxjava3.core.Observable<StorageReplicationGroup>listRpoBreaches(Long storageServerId) List replication groups whoselagSecondsexceedstargetRpoSeconds.io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationGroup>>updateReplicationGroup(StorageReplicationGroup group, Map<String, Object> opts) Update an existing replication group.Methods 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, create, remove, remove, save, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<StorageReplicationGroupIdentityProjection> listIdentityProjections(Long storageServerId) List identity projections for all replication groups belonging to a storage server.- Parameters:
storageServerId- ID of theStorageServer- Returns:
- Observable stream of identity projections
-
listRpoBreaches
List replication groups whoselagSecondsexceedstargetRpoSeconds. Used by the RPO breach detection scheduler.- Parameters:
storageServerId- ID of theStorageServer- Returns:
- Observable stream of breaching groups
-
createReplicationGroup
io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationGroup>> createReplicationGroup(StorageServer storageServer, StorageReplicationGroup group, Map<String, Object> opts) Create a new replication group on the storage server.This operation delegates to the storage provider plugin via
StorageProviderReplicationGroupFacet.createReplicationGroup(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationGroup, java.util.Map)to create the relationship on the actual storage array.- Parameters:
storageServer- the storage server to create the group ongroup- the replication group to createopts- additional options- Returns:
- ServiceResponse with the created replication group
-
updateReplicationGroup
io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationGroup>> updateReplicationGroup(StorageReplicationGroup group, Map<String, Object> opts) Update an existing replication group.This operation delegates to the storage provider plugin via
StorageProviderReplicationGroupFacet.updateReplicationGroup(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationGroup, java.util.Map)before persisting the change.- Parameters:
group- the replication group to updateopts- additional options- Returns:
- ServiceResponse with the updated replication group
-
deleteReplicationGroup
io.reactivex.rxjava3.core.Single<ServiceResponse> deleteReplicationGroup(StorageReplicationGroup group, Map<String, Object> opts) Delete a replication group.This operation delegates to the storage provider plugin via
StorageProviderReplicationGroupFacet.deleteReplicationGroup(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationGroup, java.util.Map)before removing the domain record.- Parameters:
group- the replication group to deleteopts- additional options (e.g. "deleteRemoteCopy")- Returns:
- ServiceResponse indicating success/failure
-