> +try {
> +   // create a container in the default location
> +   BlobStore blobstore = context.getBlobStore();
> +   blobstore.createContainerInLocation(null, containerName);
> +
> +   // add blob
> +   ByteSource payload = ByteSource.wrap("data".getBytes(Charsets.UTF_8));
> +   Blob blob = blobstore.blobBuilder("ignored") // The blob name is ignored 
> in Glacier
> +         .payload(payload)
> +         .contentLength(payload.size())
> +         .build();
> +   String key = blobstore.putBlob(containerName, blob);
> +
> +   // when you need access to glacier specific features,
> +   // use the provider context
> +   GlacierClient client = context.unwrapApi(GlacierClient.class);

We are shifting between the provider-specific and the portable interfaces here. 
 Should we use one or the other?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/121/files#r16017439

Reply via email to