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