Package com.morpheusdata.core
Interface MorpheusStorageControllerService
- All Superinterfaces:
MorpheusDataQueryService<StorageController>
,MorpheusDataService<StorageController,
,StorageControllerIdentityProjection> MorpheusIdentityService<StorageControllerIdentityProjection>
public interface MorpheusStorageControllerService
extends MorpheusDataService<StorageController,StorageControllerIdentityProjection>, MorpheusIdentityService<StorageControllerIdentityProjection>
Context methods for syncing StorageControllers in Morpheus
- Since:
- 0.13.0
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageController> storageControllers, ComputeServerIdentityProjection computeServer) Create persisted StorageControllers in Morpheus and add them to the ComputeServer.io.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageController> storageControllers, VirtualImageIdentityProjection virtualImage) Create persisted StorageControllers in Morpheus and add them to the VirtualImage.io.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageController> storageControllers, VirtualImageLocationIdentityProjection virtualImageLocation) Create persisted StorageControllers in Morpheus and add them to the VirtualImageLocation.Returns the MorpheusStorageControllerTypeService context used for performing updates or queries onStorageControllerType
related assets within Morpheus.io.reactivex.rxjava3.core.Observable<StorageController>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageControllerIdentityProjection> storageControllers, ComputeServerIdentityProjection computeServer, Boolean force) Remove persisted StorageControllers from Morpheus and remove them from the ComputeServer.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageControllerIdentityProjection> storageControllers, VirtualImageIdentityProjection virtualImage) Remove persisted StorageControllers from Morpheus and remove them from the VirtualImage.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageControllerIdentityProjection> storageControllers, VirtualImageLocationIdentityProjection virtualImageLocation) Remove persisted StorageControllers from Morpheus and remove them from the VirtualImageLocation.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<StorageController> storageControllers) Deprecated.Methods 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, create, remove, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
getStorageControllerType
MorpheusStorageControllerTypeService getStorageControllerType()Returns the MorpheusStorageControllerTypeService context used for performing updates or queries onStorageControllerType
related assets within Morpheus.- Returns:
- An instance of the MorpheusStorageControllerTypeService Context
-
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<StorageController> listById(Collection<Long> ids) Deprecated.Get a list of StorageControllers objects from a list of projection ids- Parameters:
ids
- StorageController ids- Returns:
- Observable stream of StorageControllers
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageController> storageControllers, VirtualImageIdentityProjection virtualImage) Create persisted StorageControllers in Morpheus and add them to the VirtualImage. Typically called during sync operations for the cloud- Parameters:
storageControllers
- controllers to addvirtualImage
- VirtualImageIdentityProjection to add the controllers to- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageController> storageControllers, VirtualImageLocationIdentityProjection virtualImageLocation) Create persisted StorageControllers in Morpheus and add them to the VirtualImageLocation. Typically called during sync operations for the cloud- Parameters:
storageControllers
- controllers to addvirtualImageLocation
- VirtualImageLocationIdentityProjection to add the controllers to- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageController> storageControllers, ComputeServerIdentityProjection computeServer) Create persisted StorageControllers in Morpheus and add them to the ComputeServer. Typically called during sync operations for the cloud- Parameters:
storageControllers
- controllers to addcomputeServer
- ComputeServerIdentityProjection to add the controllers to- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageControllerIdentityProjection> storageControllers, VirtualImageLocationIdentityProjection virtualImageLocation) Remove persisted StorageControllers from Morpheus and remove them from the VirtualImageLocation. Typically called during sync operations for the cloud to inform Morpheus that the StorageController no longer exists in the cloud- Parameters:
storageControllers
- controllers to removevirtualImageLocation
- VirtualImageLocationIdentityProjection to remove the controllers from- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageControllerIdentityProjection> storageControllers, ComputeServerIdentityProjection computeServer, Boolean force) Remove persisted StorageControllers from Morpheus and remove them from the ComputeServer. Typically called during sync operations for the cloud to inform Morpheus that the StorageController no longer exists in the cloud- Parameters:
storageControllers
- controllers to removecomputeServer
- ComputeServerIdentityProjection to remove the controllers fromforce
- Remove the StorageVolumes from the ComputeServer even if the status of the ComputeServer is 'resizing' (optional) defaults to false- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageControllerIdentityProjection> storageControllers, VirtualImageIdentityProjection virtualImage) Remove persisted StorageControllers from Morpheus and remove them from the VirtualImage. Typically called during sync operations for the cloud to inform Morpheus that the StorageController no longer exists in the cloud- Parameters:
storageControllers
- controllers to removevirtualImage
- VirtualImageIdentityProjection to remove the controllers from- Returns:
- success
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<StorageController> storageControllers) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSave updates to existing StorageControllers- Specified by:
save
in interfaceMorpheusDataService<StorageController,
StorageControllerIdentityProjection> - Parameters:
storageControllers
- controllers to save- Returns:
- success
- See Also:
-
MorpheusDataService.bulkSave(java.util.List<M>)
instead