Package com.morpheusdata.core
Interface MorpheusVirtualImageLocationService
-
public interface MorpheusVirtualImageLocationService
Context methods for syncing VirtualImageLocations in Morpheus. It can normally be accessed via the primaryMorpheusContext
via theMorpheusVirtualImageService
Examples:
morpheusContext.getVirtualImage().getLocation()
- See Also:
MorpheusVirtualImageService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
Create new VirtualImageLocations in Morpheusio.reactivex.Single<VirtualImageLocation>
findVirtualImageLocation(java.lang.Long virtualImageId, java.lang.Long cloudId, java.lang.String regionCode, java.lang.String imageFolder, java.lang.Boolean sharedStorage)
Find a VirtualImageLocation given the parametersio.reactivex.Observable<VirtualImageLocation>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of VirtualImageLocation objects from a list of projection idsio.reactivex.Observable<VirtualImageLocationIdentityProjection>
listSyncProjections(java.lang.Long cloudId)
Get a list of VirtualImageLocation projections based on Cloud idio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<VirtualImageLocationIdentityProjection> virtualImageLocations)
Remove persisted VirtualImageLocations from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
Save updates to existing VirtualImageLocations
-
-
-
Method Detail
-
listSyncProjections
io.reactivex.Observable<VirtualImageLocationIdentityProjection> listSyncProjections(java.lang.Long cloudId)
Get a list of VirtualImageLocation projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
findVirtualImageLocation
io.reactivex.Single<VirtualImageLocation> findVirtualImageLocation(java.lang.Long virtualImageId, java.lang.Long cloudId, java.lang.String regionCode, java.lang.String imageFolder, java.lang.Boolean sharedStorage)
Find a VirtualImageLocation given the parameters- Parameters:
virtualImageId
- The VirtualImage to search againstcloudId
- The id of the Cloud to search againstregionCode
- The regionCode of the Cloud to search against (optional) Defaults to nullimageFolder
- The name of the ComputeZoneFolder to search within (optional) Defaults to nullsharedStorage
- Whether to search for VirtualImageLocations with sharedStorage (optional) Defaults to false.- Returns:
- Observable VirtualImageLocation matching the parameters
-
listById
io.reactivex.Observable<VirtualImageLocation> listById(java.util.Collection<java.lang.Long> ids)
Get a list of VirtualImageLocation objects from a list of projection ids- Parameters:
ids
- VirtualImageLocation ids- Returns:
- Observable stream of VirtualImageLocations
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
Save updates to existing VirtualImageLocations- Parameters:
virtualImageLocations
- updated VirtualImageLocationscloud
- the Cloud instance- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<VirtualImageLocation> virtualImageLocations, Cloud cloud)
Create new VirtualImageLocations in Morpheus- Parameters:
virtualImageLocations
- new VirtualImageLocations to persistcloud
- the Cloud instance- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<VirtualImageLocationIdentityProjection> virtualImageLocations)
Remove persisted VirtualImageLocations from Morpheus- Parameters:
virtualImageLocations
- to delete- Returns:
- success
-
-