> +
> +// when you need access to glacier specific features,
> +// use the provider context
> +RestContext<GlacierClient, GlacierAsyncClient> restContext =
> context.unwrap();
> +GlacierClient client = GlacierClient.class.cast(context.getProviderSpecifi)
> +
> +JobRequest archiveRetrievalJobRequest = ArchiveRetrievalJobRequest.builder()
> + .archiveId(archiveId)
> + .description("retrieval job")
> + .build();
> +String jobId = client.initiateJob(vaultName, archiveRetrievalJobRequest);
> +
> +// Retrieve output when the job is done
> +Paylaoad result = client.getJobOutput(vaultName, jobId);
> +
> +context.close();
Put this in a finally to ensure it is always called, even if an exception is
thrown?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/121/files#r15861744