LocalBlobStore@Deprecated public class LocalAsyncBlobStore extends BaseAsyncBlobStore
BaseAsyncBlobStore which uses a pluggable
 LocalStorageStrategy.| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
LocalAsyncBlobStore.CommonPrefixes
Deprecated.  
  | 
protected static class  | 
LocalAsyncBlobStore.DelimiterFilter
Deprecated.  
  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Blob.Factory | 
blobFactory
Deprecated.  
  | 
protected ContentMetadataCodec | 
contentMetadataCodec
Deprecated.  
  | 
protected IfDirectoryReturnNameStrategy | 
ifDirectoryReturnName
Deprecated.  
  | 
protected Logger | 
logger
Deprecated.  
  | 
protected LocalStorageStrategy | 
storageStrategy
Deprecated.  
  | 
blobUtils, context, defaultLocation, locations, userExecutor| Modifier | Constructor and Description | 
|---|---|
protected  | 
LocalAsyncBlobStore(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,
                   ContentMetadataCodec contentMetadataCodec,
                   IfDirectoryReturnNameStrategy ifDirectoryReturnName,
                   Blob.Factory blobFactory,
                   LocalStorageStrategy storageStrategy)
Deprecated.  
  | 
| Modifier and Type | Method and Description | 
|---|---|
com.google.common.util.concurrent.ListenableFuture<Boolean> | 
blobExists(String containerName,
          String key)
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<BlobMetadata> | 
blobMetadata(String container,
            String key)
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<Void> | 
clearContainer(String container)
Deprecated.  
This implementation invokes  
BaseAsyncBlobStore.clearContainer(java.lang.String) with the
 ListContainerOptions.recursive option. | 
com.google.common.util.concurrent.ListenableFuture<Boolean> | 
containerExists(String containerName)
Deprecated.  
 | 
protected MutableStorageMetadata | 
create()
Deprecated.  
  | 
com.google.common.util.concurrent.ListenableFuture<Boolean> | 
createContainerInLocation(Location location,
                         String name)
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<Boolean> | 
createContainerInLocation(Location location,
                         String container,
                         CreateContainerOptions options)
Deprecated.  
  | 
protected boolean | 
deleteAndVerifyContainerGone(String container)
Deprecated.  
  | 
com.google.common.util.concurrent.ListenableFuture<Void> | 
deleteContainer(String container)
Deprecated.  
Override parent method because it uses strange futures and listenables
 that creates problem in the test if more than one test that deletes the
 container is executed 
 | 
com.google.common.util.concurrent.ListenableFuture<Boolean> | 
deleteContainerIfEmpty(String container)
Deprecated.  
  | 
com.google.common.util.concurrent.ListenableFuture<Blob> | 
getBlob(String containerName,
       String key,
       GetOptions options)
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> | 
list()
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> | 
list(String container,
    ListContainerOptions options)
Deprecated.  
default maxResults is 1000 
 | 
com.google.common.util.concurrent.ListenableFuture<String> | 
putBlob(String containerName,
       Blob blob)
Deprecated.  
 | 
com.google.common.util.concurrent.ListenableFuture<String> | 
putBlob(String container,
       Blob blob,
       PutOptions options)
Deprecated.  
  | 
com.google.common.util.concurrent.ListenableFuture<Void> | 
removeBlob(String container,
          String key)
Deprecated.  
 | 
static HttpResponseException | 
returnResponseException(int code)
Deprecated.  
  | 
blobBuilder, clearContainer, countBlobs, countBlobs, createDirectory, deleteDirectory, deletePathAndEnsureGone, directoryExists, getBlob, getContext, list, listAssignableLocationsprotected Logger logger
protected final ContentMetadataCodec contentMetadataCodec
protected final IfDirectoryReturnNameStrategy ifDirectoryReturnName
protected final Blob.Factory blobFactory
protected final LocalStorageStrategy storageStrategy
@Inject protected LocalAsyncBlobStore(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, ContentMetadataCodec contentMetadataCodec, IfDirectoryReturnNameStrategy ifDirectoryReturnName, Blob.Factory blobFactory, LocalStorageStrategy storageStrategy)
public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list(String container, ListContainerOptions options)
public com.google.common.util.concurrent.ListenableFuture<Void> removeBlob(String container, String key)
public com.google.common.util.concurrent.ListenableFuture<Void> clearContainer(String container)
BaseAsyncBlobStore.clearContainer(java.lang.String) with the
 ListContainerOptions.recursive option.clearContainer in interface AsyncBlobStoreclearContainer in class BaseAsyncBlobStorecontainer - container nameBlobStore.clearContainer(String)public com.google.common.util.concurrent.ListenableFuture<Void> deleteContainer(String container)
deleteContainer in interface AsyncBlobStoredeleteContainer in class BaseAsyncBlobStorecontainer - BlobStore.deleteContainer(java.lang.String)public com.google.common.util.concurrent.ListenableFuture<Boolean> deleteContainerIfEmpty(String container)
public com.google.common.util.concurrent.ListenableFuture<Boolean> containerExists(String containerName)
public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list()
BlobStore.list()protected MutableStorageMetadata create()
public com.google.common.util.concurrent.ListenableFuture<Boolean> createContainerInLocation(Location location, String name)
public static HttpResponseException returnResponseException(int code)
public com.google.common.util.concurrent.ListenableFuture<String> putBlob(String containerName, Blob blob)
BlobStore.putBlob(String,Blob)public com.google.common.util.concurrent.ListenableFuture<Boolean> blobExists(String containerName, String key)
public com.google.common.util.concurrent.ListenableFuture<Blob> getBlob(String containerName, String key, GetOptions options)
public com.google.common.util.concurrent.ListenableFuture<BlobMetadata> blobMetadata(String container, String key)
protected boolean deleteAndVerifyContainerGone(String container)
deleteAndVerifyContainerGone in class BaseAsyncBlobStorepublic com.google.common.util.concurrent.ListenableFuture<String> putBlob(String container, Blob blob, PutOptions options)
public com.google.common.util.concurrent.ListenableFuture<Boolean> createContainerInLocation(Location location, String container, CreateContainerOptions options)
Copyright © 2009-2013 jclouds. All Rights Reserved.