> + .buildView(BlobStoreContext.class);
> +
> +// create a container in the default location
> +BlobStore blobStore = context.getBlobStore();
> +blobStore.createContainerInLocation(null, containerName);
> +
> +// add blob
> +Blob blob = blobstore.blobBuilder("ignored") // The blob name is ignored in
> Glacier
> + .payload(ByteSource.wrap("data".getBytes(Charsets.UTF_8));)
> + .contentLength(payload.size())
> + .build();
> +String key = blobstore.putBlob(containerName, blob);
> +
> +// when you need access to glacier specific features,
> +// use the provider context
> +RestContext<GlacierClient, GlacierAsyncClient> restContext =
> context.unwrap();
Use `unwrapApi` instead - the async clients are not recommended.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/121/files#r15861700