Skip to content
Permalink
Browse files
Remove O(container) call to BlobStore.countBlobs
  • Loading branch information
gaul committed Apr 10, 2014
1 parent 42a3df3 commit cf2da297e348eb2c48c4fb59e8fcb0b5fb403b34
Showing 1 changed file with 1 addition and 5 deletions.
@@ -34,7 +34,6 @@
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.blobstore.domain.Blob;
import org.jclouds.blobstore.domain.StorageMetadata;
import org.jclouds.blobstore.domain.StorageType;
import org.jclouds.openstack.swift.SwiftAsyncClient;
import org.jclouds.openstack.swift.SwiftClient;
import org.jclouds.providers.ProviderMetadata;
@@ -109,10 +108,7 @@ public static void main(String[] args) throws IOException {

// List Container
for (StorageMetadata resourceMd : blobStore.list()) {
if (resourceMd.getType() == StorageType.CONTAINER || resourceMd.getType() == StorageType.FOLDER) {
String name = resourceMd.getName();
System.out.printf(" %s: %s entries%n", name, context.getBlobStore().countBlobs(name));
}
System.out.println(resourceMd);
}

// Use Provider API

0 comments on commit cf2da29

Please sign in to comment.