> + > +### Basic usage of the BlobStore view and the provider context > +{% highlight java %} > +// get a context with amazon that offers the portable BlobStore API > +BlobStoreContext context = ContextBuilder.newBuilder("glacier") > + .credentials(accesskeyid, secretkey) > + .buildView(BlobStoreContext.class); > + > +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
This is an interesting quirk and might need more explanation in the Archive section. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/121/files#r16017401