Package com.morpheusdata.core
Interface MorpheusSnapshotService
- All Superinterfaces:
MorpheusDataQueryService<Snapshot>
,MorpheusDataService<Snapshot,
,SnapshotIdentityProjection> MorpheusIdentityService<SnapshotIdentityProjection>
public interface MorpheusSnapshotService
extends MorpheusDataService<Snapshot,SnapshotIdentityProjection>, MorpheusIdentityService<SnapshotIdentityProjection>
Context methods for syncing Snapshots in Morpheus
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
addSnapshot
(SnapshotIdentityProjection snapshot, ComputeServer server) Add the existing Snapshot to the ComputeServerio.reactivex.rxjava3.core.Single<Boolean>
addSnapshot
(SnapshotIdentityProjection snapshot, StorageVolume volume) Add the existing Snapshot to the StorageVolumeio.reactivex.rxjava3.core.Single<Boolean>
Deprecated.io.reactivex.rxjava3.core.Observable<Snapshot>
Deprecated.io.reactivex.rxjava3.core.Observable<SnapshotIdentityProjection>
listIdentityProjections
(Long cloudId, String regionCode) Get a list of Snapshot projections based on Cloud idio.reactivex.rxjava3.core.Observable<SnapshotIdentityProjection>
listSyncProjections
(Long cloudId) Deprecated.replaced by {listIdentityProjections(Long, String)
}io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<SnapshotIdentityProjection> snapshots) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
removeSnapshots
(List<SnapshotIdentityProjection> snapshots) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listByIds
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<Snapshot> listByIds(List<Long> ids) Deprecated.Fetch the Snapshots given a list of ids- Parameters:
ids
- list of ids- Returns:
- Observable list of Snapshots
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<SnapshotIdentityProjection> listIdentityProjections(Long cloudId, String regionCode) Get a list of Snapshot projections based on Cloud id- Parameters:
cloudId
- Cloud idregionCode
- theCloudRegion
to optionally filter by- Returns:
- Observable stream of sync projections
-
listSyncProjections
@Deprecated io.reactivex.rxjava3.core.Observable<SnapshotIdentityProjection> listSyncProjections(Long cloudId) Deprecated.replaced by {listIdentityProjections(Long, String)
}Get a list of Snapshot projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projections
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<Snapshot> snapshots) Deprecated.Create and return new Snapshots in Morpheus- Specified by:
create
in interfaceMorpheusDataService<Snapshot,
SnapshotIdentityProjection> - Parameters:
snapshots
- List of new Snapshot to persist- Returns:
- success
- See Also:
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<Snapshot> snapshots) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSave updates to existing Snapshots in Morpheus- Specified by:
save
in interfaceMorpheusDataService<Snapshot,
SnapshotIdentityProjection> - Parameters:
snapshots
- Snapshots to update- Returns:
- whether the save was successful
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<SnapshotIdentityProjection> snapshots) Deprecated.Remove the existing Snapshot from Morpheus. This will remove it from all associations (ComputeServer, StorageVolume, etc) and then delete the Snapshot from Morpheus- Specified by:
remove
in interfaceMorpheusDataService<Snapshot,
SnapshotIdentityProjection> - Parameters:
snapshots
- existing Snapshots to remove- Returns:
- success
- See Also:
-
addSnapshot
io.reactivex.rxjava3.core.Single<Boolean> addSnapshot(SnapshotIdentityProjection snapshot, ComputeServer server) Add the existing Snapshot to the ComputeServer- Parameters:
snapshot
- existing Snapshotserver
- server to add the snapshot to- Returns:
- success
-
addSnapshot
io.reactivex.rxjava3.core.Single<Boolean> addSnapshot(SnapshotIdentityProjection snapshot, StorageVolume volume) Add the existing Snapshot to the StorageVolume- Parameters:
snapshot
- existing Snapshotvolume
- volume to add the snapshot to- Returns:
- success
-
removeSnapshots
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> removeSnapshots(List<SnapshotIdentityProjection> snapshots) Deprecated.Remove the existing Snapshot from Morpheus. This will remove it from all associations (ComputeServer, StorageVolume, etc) and then delete the Snapshot from Morpheus- Parameters:
snapshots
- existing Snapshots to remove- Returns:
- success
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead