| Access | Constructor and Description |
|---|---|
| public | S3Repository(S3Config
AWS S3 storage bucket configuration config)Construct a LFS repository storing large objects in Amazon S3 |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | cacheObjectMetaData(AnyLongObjectId
the object id identifying the object to be cached oid, long the object's size (in bytes) size)Cache metadata (size) for an object to avoid extra roundtrip to S3 in order to retrieve this metadata for a given object. |
| public Response. | getDownloadAction(AnyLongObjectId
id of the object to download oid)Implements org. Get download action |
| private URL | |
| private String | |
| public long | getSize(AnyLongObjectId
id of the object oid)Implements org. Get size of an object |
| public Response. | getUploadAction(AnyLongObjectId
id of the object to upload oid, long size of the object to be uploaded size)Implements org. Get upload action |
| public Response. | getVerifyAction(AnyLongObjectId
id of the object to be verified id)Implements org. Get verify action |
| private void |
| s3Config | back to summary |
|---|---|
| private S3Config s3Config | |
| S3Repository | back to summary |
|---|---|
| public S3Repository(S3Config config) Construct a LFS repository storing large objects in Amazon S3
| |
| assertNotEmpty | back to summary |
|---|---|
| private void assertNotEmpty(String message, String value) | |
| cacheObjectMetaData | back to summary |
|---|---|
| protected void cacheObjectMetaData(AnyLongObjectId oid, long size) Cache metadata (size) for an object to avoid extra roundtrip to S3 in
order to retrieve this metadata for a given object. Subclasses can
implement a local cache and override {
| |
| getDownloadAction | back to summary |
|---|---|
| public Response. Implements org. Doc from org. Get download action
| |
| getObjectUrl | back to summary |
|---|---|
| private URL getObjectUrl(AnyLongObjectId oid) | |
| getPath | back to summary |
|---|---|
| private String getPath(AnyLongObjectId oid) | |
| getSize | back to summary |
|---|---|
| public long getSize(AnyLongObjectId oid) throws IOException Implements org. Doc from org. Get size of an object
| |
| getUploadAction | back to summary |
|---|---|
| public Response. Implements org. Doc from org. Get upload action
| |
| getVerifyAction | back to summary |
|---|---|
| public Response. Implements org. Doc from org. Get verify action
| |
| validateConfig | back to summary |
|---|---|
| private void validateConfig(S3Config config) | |