jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:10:42 GMT
> +    */
> +   @Override
> +   public String putBlob(String container, Blob blob) {
> +      checkNotNull(blob.getPayload().getContentMetadata().getContentLength());
> +      HashCode md5 = blob.getMetadata().getContentMetadata().getContentMD5AsHashCode();
> +
> +      ObjectTemplate template = blobMetadataToObjectTemplate.apply(blob.getMetadata());
> +
> +      if (md5 != null) {
> +         template.md5Hash(md5);
> +      }
> +      return api.getObjectApi().multipartUpload(container, template, blob.getPayload()).getEtag();
> +   }
> +
> +   @Override
> +   public String putBlob(String container, Blob blob, PutOptions options) {

Do we support any other options? If not, document that?

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