Interface LargeFileRepository

  • All Known Implementing Classes:
    FileLfsRepository, S3Repository

    public interface LargeFileRepository
    Abstraction of a repository for storing large objects
    Since:
    4.3
    • Method Detail

      • getDownloadAction

        Response.Action getDownloadAction​(AnyLongObjectId id)
        Get download action
        Parameters:
        id - id of the object to download
        Returns:
        Action for downloading the object
      • getUploadAction

        Response.Action getUploadAction​(AnyLongObjectId id,
                                        long size)
        Get upload action
        Parameters:
        id - id of the object to upload
        size - size of the object to be uploaded
        Returns:
        Action for uploading the object
      • getVerifyAction

        @Nullable
        Response.Action getVerifyAction​(AnyLongObjectId id)
        Get verify action
        Parameters:
        id - id of the object to be verified
        Returns:
        Action for verifying the object, or null if the server doesn't support or require verification
      • getSize

        long getSize​(AnyLongObjectId id)
              throws IOException
        Get size of an object
        Parameters:
        id - id of the object
        Returns:
        length of the object content in bytes, -1 if the object doesn't exist
        Throws:
        IOException