Package org.eclipse.jgit.lfs.server
Interface LargeFileRepository
-
- All Known Implementing Classes:
FileLfsRepository,S3Repository
public interface LargeFileRepositoryAbstraction of a repository for storing large objects- Since:
- 4.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Response.ActiongetDownloadAction(AnyLongObjectId id)Get download actionlonggetSize(AnyLongObjectId id)Get size of an objectResponse.ActiongetUploadAction(AnyLongObjectId id, long size)Get upload actionResponse.ActiongetVerifyAction(AnyLongObjectId id)Get verify action
-
-
-
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 uploadsize- 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
nullif 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
-
-