From 6b8a2a73d48c82103fdf9c51adcccee0b898f1b2 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 23 Jul 2012 13:31:06 -0700 Subject: [PATCH] Add missing @Override in TransientStorageStrategy --- .../jclouds/blobstore/TransientStorageStrategy.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/TransientStorageStrategy.java b/blobstore/src/main/java/org/jclouds/blobstore/TransientStorageStrategy.java index 421c3fb576..54d90677f8 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/TransientStorageStrategy.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/TransientStorageStrategy.java @@ -77,14 +77,17 @@ public class TransientStorageStrategy implements LocalStorageStrategy { this.uriBuilders = uriBuilders; } + @Override public Iterable getAllContainerNames() { return containerToBlobs.keySet(); } + @Override public boolean containerExists(final String containerName) { return containerToBlobs.containsKey(containerName); } + @Override public void clearContainer(final String containerName) { containerToBlobs.get(containerName).clear(); } @@ -95,6 +98,7 @@ public class TransientStorageStrategy implements LocalStorageStrategy { clearContainer(container); } + @Override public boolean createContainerInLocation(final String containerName, final Location location) { ConcurrentMap origValue = containerToBlobs.putIfAbsent( containerName, new ConcurrentHashMap()); @@ -105,20 +109,24 @@ public class TransientStorageStrategy implements LocalStorageStrategy { return true; } + @Override public void deleteContainer(final String containerName) { containerToBlobs.remove(containerName); } + @Override public boolean blobExists(final String containerName, final String blobName) { Map map = containerToBlobs.get(containerName); return map != null && map.containsKey(blobName); } + @Override public Blob getBlob(final String containerName, final String blobName) { Map map = containerToBlobs.get(containerName); return map == null ? null : map.get(blobName); } + @Override public String putBlob(final String containerName, final Blob blob) throws IOException { Blob newBlob = createUpdatedCopyOfBlobInContainer(containerName, blob); Map map = containerToBlobs.get(containerName); @@ -128,12 +136,14 @@ public class TransientStorageStrategy implements LocalStorageStrategy { return eTag; } + @Override public void removeBlob(final String containerName, final String blobName) { Map map = containerToBlobs.get(containerName); if (map != null) map.remove(blobName); } + @Override public Iterable getBlobKeysInsideContainer(final String containerName) { return containerToBlobs.get(containerName).keySet(); }