Interface MorpheusSnapshotService


  • public interface MorpheusSnapshotService
    Context methods for syncing Snapshots in Morpheus
    • Method Detail

      • listByIds

        io.reactivex.Observable<Snapshot> listByIds​(java.util.List<java.lang.Long> ids)
        Fetch the Snapshots given a list of ids
        Parameters:
        ids - list of ids
        Returns:
        Observable list of Snapshots
      • create

        io.reactivex.Single<Snapshot> create​(Snapshot snapshot)
        Create and return a new Snapshot in Morpheus
        Parameters:
        snapshot - new Snapshot to persist
        Returns:
        the snapshot
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<Snapshot> snapshots)
        Save updates to existing Snapshots in Morpheus
        Parameters:
        snapshots - Snapshots to update
        Returns:
        whether the save was successful
      • addSnapshot

        io.reactivex.Single<java.lang.Boolean> addSnapshot​(SnapshotIdentityProjection snapshot,
                                                           ComputeServer server)
        Add the existing Snapshot to the ComputeServer
        Parameters:
        snapshot - existing Snapshot
        server - server to add the snapshot to
        Returns:
        success
      • addSnapshot

        io.reactivex.Single<java.lang.Boolean> addSnapshot​(SnapshotIdentityProjection snapshot,
                                                           StorageVolume volume)
        Add the existing Snapshot to the StorageVolume
        Parameters:
        snapshot - existing Snapshot
        volume - volume to add the snapshot to
        Returns:
        success
      • removeSnapshots

        io.reactivex.Single<java.lang.Boolean> removeSnapshots​(java.util.List<SnapshotIdentityProjection> snapshots)
        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