jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-894: Add portable multipart upload (#762)
Date Sat, 06 Jun 2015 22:24:59 GMT
> @@ -275,4 +285,20 @@ public String copyBlob(String fromContainer, String fromName, String
toContainer
>           Closeables2.closeQuietly(is);
>        }
>     }
> +
> +   // TODO: parallel uploads
> +   @Beta
> +   protected String putMultipartBlob(String container, Blob blob, PutOptions overrides)
{
> +      MultipartUpload mpu = initiateMultipartUpload(container, blob.getMetadata());
> +      List<MultipartPart> parts = Lists.newArrayList();
> +      long contentLength = blob.getMetadata().getContentMetadata().getContentLength();
> +      long partSize = getMaximumMultipartPartSize();  // TODO: optimal?

I reparented the S3 `MultipartUploadSlicingAlgorithm` to core so we have the same algorithm
as before.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/762/files#r31872080
Mime
View raw message