Interface ProcessedCommitsStore

  • All Known Implementing Classes:
    ProcessedCommitsStoreImpl

    public interface ProcessedCommitsStore
    Store that holds the last processed Git commit for each target.
    Author:
    avasquez
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(String targetId)
      Deletes the stored commit ID for the specified target.
      org.eclipse.jgit.lib.ObjectId load​(String targetId)
      Loads the stored commit ID for the specified target.
      void store​(String targetId, org.eclipse.jgit.lib.ObjectId commitId)
      Stores the specified commit ID for the target.
    • Method Detail

      • load

        org.eclipse.jgit.lib.ObjectId load​(String targetId)
                                    throws DeployerException
        Loads the stored commit ID for the specified target.
        Parameters:
        targetId - the target's ID
        Returns:
        the commit's ObjectId, or null if not found
        Throws:
        DeployerException - if an error occurs
      • store

        void store​(String targetId,
                   org.eclipse.jgit.lib.ObjectId commitId)
            throws DeployerException
        Stores the specified commit ID for the target.
        Parameters:
        targetId - the target's ID
        commitId - the commit's ObjectId
        Throws:
        DeployerException - if an error occurs
      • delete

        void delete​(String targetId)
             throws DeployerException
        Deletes the stored commit ID for the specified target.
        Parameters:
        targetId - the target's ID
        Throws:
        DeployerException - if an error occurs