> @Override
> public Blob getBlob(String container, String key, GetOptions getOptions) {
> - throw new UnsupportedOperationException();
> + String jobId = sync.initiateJob(container,
> buildArchiveRetrievalRequest(key, getOptions));
> + try {
> + if (pollingStrategy.get().waitForSuccess(container, jobId)) {
> + MutableBlobMetadata blobMetadata = new MutableBlobMetadataImpl();
> + blobMetadata.setContainer(container);
> + blobMetadata.setName(key);
> +
> + Blob blob = new BlobImpl(blobMetadata);
> + blob.setPayload(sync.getJobOutput(container, jobId));
> + return blob;
> + }
> + return null;
> + } catch (InterruptedException e) {
> + throw new RuntimeException(e);
See comments in other PRs about using Throwables.propagate here.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/45/files#r15725716