public abstract class BaseAsyncBlobStore extends Object implements AsyncBlobStore
| Modifier and Type | Field and Description |
|---|---|
protected BlobUtils |
blobUtils |
protected BlobStoreContext |
context |
protected com.google.common.base.Supplier<Location> |
defaultLocation |
protected com.google.common.base.Supplier<Set<? extends Location>> |
locations |
protected ExecutorService |
service |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAsyncBlobStore(BlobStoreContext context,
BlobUtils blobUtils,
ExecutorService service,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations) |
| Modifier and Type | Method and Description |
|---|---|
BlobBuilder |
blobBuilder(String name)
invokes
BlobUtilsImpl.blobBuilder() |
com.google.common.util.concurrent.ListenableFuture<Void> |
clearContainer(String container)
This implementation invokes
clearContainer(java.lang.String) with the
ListContainerOptions.recursive option. |
com.google.common.util.concurrent.ListenableFuture<Void> |
clearContainer(String containerName,
ListContainerOptions options)
This implementation invokes
BlobUtilsImpl.clearContainer(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions) |
com.google.common.util.concurrent.ListenableFuture<Long> |
countBlobs(String container)
This implementation invokes
countBlobs(java.lang.String) with the
ListContainerOptions.recursive option. |
com.google.common.util.concurrent.ListenableFuture<Long> |
countBlobs(String containerName,
ListContainerOptions options)
This implementation invokes
BlobUtilsImpl.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions) |
com.google.common.util.concurrent.ListenableFuture<Void> |
createDirectory(String containerName,
String directory)
This implementation invokes
BlobUtilsImpl.createDirectory(java.lang.String, java.lang.String) |
protected void |
deleteAndEnsurePathGone(String container) |
protected abstract boolean |
deleteAndVerifyContainerGone(String container) |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteContainer(String container)
This implementation invokes
deleteAndEnsurePathGone(java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteDirectory(String containerName,
String directory)
This implementation invokes
BlobUtilsImpl.deleteDirectory(java.lang.String, java.lang.String). |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
directoryExists(String containerName,
String directory)
This implementation invokes
BlobUtilsImpl.directoryExists(java.lang.String, java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Blob> |
getBlob(String container,
String key)
This implementation invokes
AsyncBlobStore.getBlob(String,String,org.jclouds.blobstore.options.GetOptions) |
BlobStoreContext |
getContext() |
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> |
list(String container)
This implementation invokes
AsyncBlobStore.list(String,org.jclouds.blobstore.options.ListContainerOptions) |
com.google.common.util.concurrent.ListenableFuture<Set<? extends Location>> |
listAssignableLocations() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblobExists, blobMetadata, containerExists, createContainerInLocation, createContainerInLocation, getBlob, list, list, putBlob, putBlob, removeBlobprotected final BlobStoreContext context
protected final BlobUtils blobUtils
protected final ExecutorService service
protected final com.google.common.base.Supplier<Location> defaultLocation
@Inject protected BaseAsyncBlobStore(BlobStoreContext context, BlobUtils blobUtils, @Named(value="jclouds.user-threads") ExecutorService service, com.google.common.base.Supplier<Location> defaultLocation, com.google.common.base.Supplier<Set<? extends Location>> locations)
public BlobStoreContext getContext()
getContext in interface AsyncBlobStoreBlobStore.getContext()public BlobBuilder blobBuilder(String name)
BlobUtilsImpl.blobBuilder()blobBuilder in interface AsyncBlobStoreBlobStore.blobBuilder(java.lang.String)public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list(String container)
AsyncBlobStore.list(String,org.jclouds.blobstore.options.ListContainerOptions)list in interface AsyncBlobStorecontainer - container nameBlobStore.list(String)public com.google.common.util.concurrent.ListenableFuture<Long> countBlobs(String container)
countBlobs(java.lang.String) with the
ListContainerOptions.recursive option.countBlobs in interface AsyncBlobStorecontainer - container nameBlobStore.countBlobs(String)public com.google.common.util.concurrent.ListenableFuture<Long> countBlobs(String containerName, ListContainerOptions options)
BlobUtilsImpl.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)countBlobs in interface AsyncBlobStorecontainer - container nameBlobStore.countBlobs(String,ListContainerOptions)public com.google.common.util.concurrent.ListenableFuture<Void> clearContainer(String container)
clearContainer(java.lang.String) with the
ListContainerOptions.recursive option.clearContainer in interface AsyncBlobStorecontainer - container nameBlobStore.clearContainer(String)public com.google.common.util.concurrent.ListenableFuture<Void> clearContainer(String containerName, ListContainerOptions options)
BlobUtilsImpl.clearContainer(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)clearContainer in interface AsyncBlobStorecontainer - container nameBlobStore.clearContainer(String, ListContainerOptions)public com.google.common.util.concurrent.ListenableFuture<Void> deleteDirectory(String containerName, String directory)
BlobUtilsImpl.deleteDirectory(java.lang.String, java.lang.String).deleteDirectory in interface AsyncBlobStorecontainer - container nameBlobStore.deleteDirectory(java.lang.String, java.lang.String)public com.google.common.util.concurrent.ListenableFuture<Boolean> directoryExists(String containerName, String directory)
BlobUtilsImpl.directoryExists(java.lang.String, java.lang.String)directoryExists in interface AsyncBlobStorecontainer - container namedirectory - virtual pathBlobStore.directoryExists(java.lang.String, java.lang.String)public com.google.common.util.concurrent.ListenableFuture<Void> createDirectory(String containerName, String directory)
BlobUtilsImpl.createDirectory(java.lang.String, java.lang.String)createDirectory in interface AsyncBlobStorecontainer - container namedirectory - virtual pathBlobStore.createDirectory(java.lang.String, java.lang.String)public com.google.common.util.concurrent.ListenableFuture<Blob> getBlob(String container, String key)
AsyncBlobStore.getBlob(String,String,org.jclouds.blobstore.options.GetOptions)getBlob in interface AsyncBlobStorecontainer - container namekey - blob keyBlobStore.getBlob(String, String)public com.google.common.util.concurrent.ListenableFuture<Void> deleteContainer(String container)
deleteAndEnsurePathGone(java.lang.String)deleteContainer in interface AsyncBlobStorecontainer - bucket nameBlobStore.deleteContainer(java.lang.String)protected void deleteAndEnsurePathGone(String container)
public com.google.common.util.concurrent.ListenableFuture<Set<? extends Location>> listAssignableLocations()
listAssignableLocations in interface AsyncBlobStoreBlobStore.listAssignableLocations()protected abstract boolean deleteAndVerifyContainerGone(String container)
Copyright © 2009-2012 jclouds. All Rights Reserved.