Top Description Methods
org.eclipse.jgit.lfs.server

public Interface LargeFileRepository

Known Direct Implementers
org.eclipse.jgit.lfs.server.fs.FileLfsRepository, org.eclipse.jgit.lfs.server.s3.S3Repository
Imports
java.io.IOException, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.lfs.lib.AnyLongObjectId

Abstraction of a repository for storing large objects
Since
4.3

Method Summary

Modifier and TypeMethod and Description
public Response.Action

Returns:

Action for downloading the object
getDownloadAction
(AnyLongObjectId
id of the object to download
id
)

Get download action

public long

Returns:

length of the object content in bytes, -1 if the object doesn't exist
getSize
(AnyLongObjectId
id of the object
id
)

Get size of an object

public Response.Action

Returns:

Action for uploading the object
getUploadAction
(AnyLongObjectId
id of the object to upload
id
,
long
size of the object to be uploaded
size
)

Get upload action

public Response.Action

Returns:

Action for verifying the object, or null if the server doesn't support or require verification
getVerifyAction
(AnyLongObjectId
id of the object to be verified
id
)

Get verify action

Method Detail

getDownloadActionback to summary
public Response.Action getDownloadAction(AnyLongObjectId id)

Get download action

Parameters
id:AnyLongObjectId

id of the object to download

Returns:Response.Action

Action for downloading the object

getSizeback to summary
public long getSize(AnyLongObjectId id) throws IOException

Get size of an object

Parameters
id:AnyLongObjectId

id of the object

Returns:long

length of the object content in bytes, -1 if the object doesn't exist

Exceptions
IOException:
if an IO error occurred
getUploadActionback to summary
public Response.Action getUploadAction(AnyLongObjectId id, long size)

Get upload action

Parameters
id:AnyLongObjectId

id of the object to upload

size:long

size of the object to be uploaded

Returns:Response.Action

Action for uploading the object

getVerifyActionback to summary
public Response.Action getVerifyAction(AnyLongObjectId id)

Get verify action

Parameters
id:AnyLongObjectId

id of the object to be verified

Returns:Response.Action

Action for verifying the object, or null if the server doesn't support or require verification

Annotations
@Nullable