Interface ScmRepoManifest


  • public interface ScmRepoManifest
    Defines the manifest of repo files tracked and mapping to Job definitions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getJobToFileMapping()
      Return the mapping of UUID to relative file path
      java.lang.String getRelativePathFor​(JobReference job)  
      java.lang.String getRelativePathFor​(java.lang.String uuid)  
      void removeFile​(java.lang.String path)
      Remove the entry for the path
      void removeUUID​(java.lang.String uuid)
      Remove the entry for the UUID
      void setMapping​(java.lang.String uuid, java.lang.String filepath)
      Add or update a UUID to filepathmapping entry
      void store​(java.io.OutputStream out)
      Store the mapping to disk
    • Method Detail

      • getJobToFileMapping

        java.util.Map<java.lang.String,​java.lang.String> getJobToFileMapping()
        Return the mapping of UUID to relative file path
        Returns:
        the mapping of UUID to relative file path
      • getRelativePathFor

        java.lang.String getRelativePathFor​(java.lang.String uuid)
      • getRelativePathFor

        java.lang.String getRelativePathFor​(JobReference job)
      • store

        void store​(java.io.OutputStream out)
            throws java.io.IOException
        Store the mapping to disk
        Throws:
        java.io.IOException
      • setMapping

        void setMapping​(java.lang.String uuid,
                        java.lang.String filepath)
        Add or update a UUID to filepathmapping entry
        Parameters:
        uuid - uuid
        filepath - filepath
      • removeUUID

        void removeUUID​(java.lang.String uuid)
        Remove the entry for the UUID
        Parameters:
        uuid - uuid
      • removeFile

        void removeFile​(java.lang.String path)
        Remove the entry for the path
        Parameters:
        path - relative path