Interface SnapshotJobManager


  • public interface SnapshotJobManager
    An interface defining the interaction between the REST api and job engine. Primary function is to hide the details of the underlying job processing subsystem.
    Author:
    Daniel Bernstein Date: Feb 11, 2014
    • Method Detail

      • isInitialized

        boolean isInitialized()
        Returns:
        true if the service is already initialized.
      • executeSnapshot

        org.springframework.batch.core.BatchStatus executeSnapshot​(java.lang.String snapshotId)
                                                            throws SnapshotException
        This method creates an underlying job and executes it.
        Parameters:
        snapshotId -
        Returns:
        Throws:
        SnapshotException
      • executeRestoration

        org.springframework.batch.core.BatchStatus executeRestoration​(java.lang.String restorationId)
                                                               throws SnapshotException
        Parameters:
        restorationId -
        Returns:
        Throws:
        SnapshotException
      • cancelRestore

        void cancelRestore​(java.lang.String restoreId)
                    throws SnapshotException
        Stops the restore process and removes source content and destination space. Cancels a restore
        Parameters:
        restoreId -
        Throws:
        SnapshotException
      • stopRestore

        Restoration stopRestore​(java.lang.String restoreId)
                         throws SnapshotException
        Stops the restore process but leaves underlying file system and destination space intact.
        Parameters:
        restoreId -
        Returns:
        Throws:
        SnapshotException
      • getConfig

        SnapshotJobManagerConfig getConfig()
        Access the snapshot job manager configuration.
        Returns:
        the config object