Interface MorpheusStorageControllerService


  • public interface MorpheusStorageControllerService
    Context methods for syncing StorageControllers in Morpheus
    Since:
    0.13.0
    • Method Detail

      • getStorageControllerType

        MorpheusStorageControllerTypeService getStorageControllerType()
        Returns the MorpheusStorageControllerTypeService context used for performing updates or queries on StorageControllerType related assets within Morpheus.
        Returns:
        An instance of the MorpheusStorageControllerTypeService Context
      • listById

        io.reactivex.Observable<StorageController> listById​(java.util.Collection<java.lang.Long> ids)
        Get a list of StorageControllers objects from a list of projection ids
        Parameters:
        ids - StorageController ids
        Returns:
        Observable stream of StorageControllers
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.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 add
        virtualImage - VirtualImageIdentityProjection to add the controllers to
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.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 add
        virtualImageLocation - VirtualImageLocationIdentityProjection to add the controllers to
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.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 add
        computeServer - ComputeServerIdentityProjection to add the controllers to
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.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 remove
        virtualImageLocation - VirtualImageLocationIdentityProjection to remove the controllers from
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<StorageControllerIdentityProjection> storageControllers,
                                                      ComputeServerIdentityProjection computeServer,
                                                      java.lang.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 remove
        computeServer - ComputeServerIdentityProjection to remove the controllers from
        force - Remove the StorageVolumes from the ComputeServer even if the status of the ComputeServer is 'resizing' (optional) defaults to false
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.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 remove
        virtualImage - VirtualImageIdentityProjection to remove the controllers from
        Returns:
        success
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<StorageController> storageControllers)
        Save updates to existing StorageControllers
        Parameters:
        storageControllers - controllers to save
        Returns:
        success