Repository: jclouds-labs-aws Updated Branches: refs/heads/master e80b4f812 -> 0b78374a0
JCLOUDS-457: Implementing getBlob without options The missing getBlob implementation has been added. Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/commit/0b78374a Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/tree/0b78374a Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/diff/0b78374a Branch: refs/heads/master Commit: 0b78374a0cfadde7baa1c5eec1a657cef22adc5d Parents: e80b4f8 Author: Roman Coedo <[email protected]> Authored: Sun Aug 3 23:27:06 2014 +0200 Committer: Andrew Phillips <[email protected]> Committed: Tue Aug 5 13:43:59 2014 +0200 ---------------------------------------------------------------------- .../glacier/blobstore/GlacierBlobStore.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/blob/0b78374a/glacier/src/main/java/org/jclouds/glacier/blobstore/GlacierBlobStore.java ---------------------------------------------------------------------- diff --git a/glacier/src/main/java/org/jclouds/glacier/blobstore/GlacierBlobStore.java b/glacier/src/main/java/org/jclouds/glacier/blobstore/GlacierBlobStore.java index 6a4ee09..ced398d 100644 --- a/glacier/src/main/java/org/jclouds/glacier/blobstore/GlacierBlobStore.java +++ b/glacier/src/main/java/org/jclouds/glacier/blobstore/GlacierBlobStore.java @@ -296,7 +296,7 @@ public class GlacierBlobStore extends BaseBlobStore { * container name * @param key * blob name - * @return null if the blob doesn't exist or the archive retrieval fails, the blob otherwise + * @return The blob to retrieve, or null if the blob doesn't exist or the archive retrieval fails */ @Override public Blob getBlob(String container, String key, GetOptions getOptions) { @@ -318,6 +318,21 @@ public class GlacierBlobStore extends BaseBlobStore { } /** + * Retrieves the blob using default options + * This operation will take several hours. + * + * @param container + * container name + * @param key + * blob name + * @return The blob to retrieve, or null if the blob doesn't exist or the archive retrieval fails + */ + @Override + public Blob getBlob(String container, String key) { + return getBlob(container, key, null); + } + + /** * Deletes the blob. * * @param container
