|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.blobstore.internal.BaseAsyncBlobStore
public abstract class BaseAsyncBlobStore
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
protected |
BaseAsyncBlobStore(BlobStoreContext context,
BlobUtils blobUtils,
ExecutorService service,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations)
|
Method Summary | |
---|---|
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()
|
Blob |
newBlob(String name)
invokes BlobUtilsImpl.newBlob(java.lang.String) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jclouds.blobstore.AsyncBlobStore |
---|
blobExists, blobMetadata, containerExists, createContainerInLocation, createContainerInLocation, getBlob, list, list, putBlob, putBlob, removeBlob |
Field Detail |
---|
protected final BlobStoreContext context
protected final BlobUtils blobUtils
protected final ExecutorService service
protected final com.google.common.base.Supplier<Location> defaultLocation
protected final com.google.common.base.Supplier<Set<? extends Location>> locations
Constructor Detail |
---|
@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)
Method Detail |
---|
public BlobStoreContext getContext()
getContext
in interface AsyncBlobStore
BlobStore.getContext()
public Blob newBlob(String name)
BlobUtilsImpl.newBlob(java.lang.String)
newBlob
in interface AsyncBlobStore
BlobStore.newBlob(java.lang.String)
public BlobBuilder blobBuilder(String name)
BlobUtilsImpl.blobBuilder()
blobBuilder
in interface AsyncBlobStore
BlobStore.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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
container
- 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 AsyncBlobStore
BlobStore.listAssignableLocations()
protected abstract boolean deleteAndVerifyContainerGone(String container)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |