jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds-examples] Add glacier example (#58)
Date Fri, 08 Aug 2014 21:35:33 GMT
> +      JobRequest archiveRetrievalJobRequest = ArchiveRetrievalJobRequest.builder()
> +            .archiveId(archiveId)
> +            .description("retrieval job")
> +            .build();
> +
> +      // Initiate job
> +      String jobId = client.initiateJob(vaultName, archiveRetrievalJobRequest);
> +      try {
> +         // Poll until the job is done
> +         new BasePollingStrategy(client).waitForSuccess(vaultName, jobId);
> +
> +         // Get the job output
> +         Payload result = client.getJobOutput(vaultName, jobId);
> +
> +         // Print the result
> +         InputStream is = result.openStream();

`Strings2.toStringAndClose`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/58/files#r16017803
Mime
View raw message