Interface SnapshotManager


  • public interface SnapshotManager
    Author:
    Daniel Bernstein Date: Jul 30, 2014
    • Method Detail

      • transferToStorageComplete

        Snapshot transferToStorageComplete​(String snapshotId)
                                    throws SnapshotException
        Notifies the bridge that the snapshot's transfer to storage is complete. This call is initiated via the bridge REST API by the entity retrieving the snapshot from bridge storage.
        Parameters:
        snapshotId -
        Throws:
        SnapshotException
      • transferError

        Snapshot transferError​(String snapshotId,
                               String errorDetails)
                        throws SnapshotException
        Notifies the bridge that the snapshot transfer action failed to complete due to an error condition. This call is initiated via the bridge REST API by the entity retrieving the snapshot from bridge storage.
        Parameters:
        snapshotId -
        errorDetails -
        Returns:
        Throws:
        SnapshotException
      • finalizeSnapshots

        void finalizeSnapshots()
        This method runs through any snapshots with a status of CLEANING_UP and checks if the corresponding space is empty. If so, the state is updated to complete and notification is sent out to the user.
      • updateHistory

        Snapshot updateHistory​(Snapshot snapshot,
                               String history)
        Updates a snapshot's history
        Parameters:
        snapshot -
        history -
        Returns:
        the altered snapshot
      • deleteSnapshot

        void deleteSnapshot​(String snapshotId)