Interface MorpheusStorageVolumeService


  • public interface MorpheusStorageVolumeService
    Context methods for syncing StorageVolumes in Morpheus
    Since:
    0.13.0
    • Method Detail

      • getStorageVolumeType

        MorpheusStorageVolumeTypeService getStorageVolumeType()
        Returns the StorageVolumeType Service
        Returns:
        An instance of the StorageVolumeType Service
      • listById

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

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<StorageVolume> storageVolumes,
                                                      VirtualImageIdentityProjection virtualImage)
        Create persisted StorageVolumes in Morpheus and add them to the VirtualImage. Typically called during sync operations for the cloud
        Parameters:
        storageVolumes - volumes to add
        virtualImage - VirtualImageIdentityProjection to add the volumes to
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<StorageVolume> storageVolumes,
                                                      VirtualImageLocationIdentityProjection virtualImageLocation)
        Create persisted StorageVolumes in Morpheus and add them to the VirtualImageLocation. Typically called during sync operations for the cloud
        Parameters:
        storageVolumes - volumes to add
        virtualImageLocation - VirtualImageLocationIdentityProjection to add the volumes to
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<StorageVolume> storageVolumes,
                                                      ComputeServerIdentityProjection computeServer)
        Create persisted StorageVolumes in Morpheus and add them to the ComputeServer. Typically called during sync operations for the cloud.
        Parameters:
        storageVolumes - volumes to add
        computeServer - ComputeServerIdentityProjection to add the volumes to
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<StorageVolumeIdentityProjection> storageVolumes,
                                                      VirtualImageLocationIdentityProjection virtualImageLocation)
        Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImageLocation. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud
        Parameters:
        storageVolumes - volumes to remove
        virtualImageLocation - VirtualImageLocationIdentityProjection to remove the volumes from
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<StorageVolumeIdentityProjection> storageVolumes,
                                                      ComputeServerIdentityProjection computeServer,
                                                      java.lang.Boolean force)
        Remove persisted StorageVolumes from Morpheus and remove them from the ComputeServer. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud
        Parameters:
        storageVolumes - volumes to remove
        computeServer - ComputeServerIdentityProjection to remove the volumes 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<StorageVolumeIdentityProjection> storageVolumes,
                                                      VirtualImageIdentityProjection virtualImage)
        Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImage. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud
        Parameters:
        storageVolumes - volumes to remove
        virtualImage - VirtualImageIdentityProjection to remove the volumes from
        Returns:
        success
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<StorageVolume> storageVolumes)
        Save updates to existing StorageVolumes
        Parameters:
        storageVolumes - volumes to save
        Returns:
        success