Interface MorpheusStorageReplicationPartnerService
- All Superinterfaces:
MorpheusDataQueryService<StorageReplicationPartner>,MorpheusDataService<StorageReplicationPartner,,StorageReplicationPartnerIdentityProjection> MorpheusIdentityService<StorageReplicationPartnerIdentityProjection>
StorageReplicationPartner in Morpheus.
A replication partner represents a remote storage system that a local array
replicates data to.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationPartner>>createReplicationPartner(StorageServer storageServer, StorageReplicationPartner partner, Map<String, Object> opts) Create a new replication partner on the storage server.io.reactivex.rxjava3.core.Single<ServiceResponse>deleteReplicationPartner(StorageReplicationPartner partner, Map<String, Object> opts) Delete a replication partner.io.reactivex.rxjava3.core.Observable<StorageReplicationPartnerIdentityProjection>listIdentityProjections(Long storageServerId) List identity projections for all replication partners belonging to a storage server.io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationPartner>>updateReplicationPartner(StorageReplicationPartner partner, Map<String, Object> opts) Update an existing replication partner.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<StorageReplicationPartnerIdentityProjection> listIdentityProjections(Long storageServerId) List identity projections for all replication partners belonging to a storage server.- Parameters:
storageServerId- ID of the localStorageServer- Returns:
- Observable stream of identity projections
-
createReplicationPartner
io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationPartner>> createReplicationPartner(StorageServer storageServer, StorageReplicationPartner partner, Map<String, Object> opts) Create a new replication partner on the storage server.This operation delegates to the storage provider plugin via
StorageProviderReplicationPartnerFacet.createReplicationPartner(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationPartner, java.util.Map)to create the pairing on the actual storage array.- Parameters:
storageServer- the storage server to create the partner onpartner- the replication partner to createopts- additional options- Returns:
- ServiceResponse with the created replication partner
-
updateReplicationPartner
io.reactivex.rxjava3.core.Single<ServiceResponse<StorageReplicationPartner>> updateReplicationPartner(StorageReplicationPartner partner, Map<String, Object> opts) Update an existing replication partner.This operation delegates to the storage provider plugin via
StorageProviderReplicationPartnerFacet.updateReplicationPartner(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationPartner, java.util.Map)before persisting the change.- Parameters:
partner- the replication partner to updateopts- additional options- Returns:
- ServiceResponse with the updated replication partner
-
deleteReplicationPartner
io.reactivex.rxjava3.core.Single<ServiceResponse> deleteReplicationPartner(StorageReplicationPartner partner, Map<String, Object> opts) Delete a replication partner.This operation delegates to the storage provider plugin via
StorageProviderReplicationPartnerFacet.deleteReplicationPartner(com.morpheusdata.model.StorageServer, com.morpheusdata.model.StorageReplicationPartner, java.util.Map)before removing the domain record.- Parameters:
partner- the replication partner to deleteopts- additional options- Returns:
- ServiceResponse indicating success/failure
-