|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.blobstore.internal.BaseAsyncBlobStore org.jclouds.filesystem.FilesystemAsyncBlobStore
public class FilesystemAsyncBlobStore
Preconditions: Blob name cannot start with / char (or \ under windows)
Nested Class Summary | |
---|---|
protected static class |
FilesystemAsyncBlobStore.CommonPrefixes
|
protected static class |
FilesystemAsyncBlobStore.DelimiterFilter
|
Field Summary | |
---|---|
protected Crypto |
crypto
|
protected DateService |
dateService
|
protected HttpGetOptionsListToGetOptions |
httpGetOptionsConverter
|
protected IfDirectoryReturnNameStrategy |
ifDirectoryReturnName
|
protected Logger |
logger
|
protected FilesystemStorageStrategy |
storageStrategy
|
Fields inherited from class org.jclouds.blobstore.internal.BaseAsyncBlobStore |
---|
blobUtils, context, defaultLocation, locations, service |
Constructor Summary | |
---|---|
protected |
FilesystemAsyncBlobStore(BlobStoreContext context,
DateService dateService,
Crypto crypto,
HttpGetOptionsListToGetOptions httpGetOptionsConverter,
IfDirectoryReturnNameStrategy ifDirectoryReturnName,
BlobUtils blobUtils,
ExecutorService service,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations,
FilesystemStorageStrategy storageStrategy)
|
Method Summary | ||
---|---|---|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
blobExists(String containerName,
String key)
|
|
com.google.common.util.concurrent.ListenableFuture<BlobMetadata> |
blobMetadata(String container,
String key)
|
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
containerExists(String containerName)
|
|
static MutableBlobMetadata |
copy(MutableBlobMetadata in)
|
|
static MutableBlobMetadata |
copy(MutableBlobMetadata in,
String newKey)
|
|
protected MutableStorageMetadata |
create()
|
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
createContainerInLocation(Location location,
String name)
|
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
createContainerInLocation(Location location,
String container,
CreateContainerOptions options)
|
|
protected boolean |
deleteAndVerifyContainerGone(String container)
|
|
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteContainer(String container)
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 |
|
static
|
firstSliceOfSize(Iterable<T> elements,
int size)
|
|
com.google.common.util.concurrent.ListenableFuture<Blob> |
getBlob(String containerName,
String key,
GetOptions options)
|
|
String |
getFirstQueryOrNull(String string,
HttpRequestOptions options)
|
|
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> |
list()
|
|
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> |
list(String container,
ListContainerOptions options)
default maxResults is 1000 |
|
com.google.common.util.concurrent.ListenableFuture<String> |
putBlob(String containerName,
Blob object)
|
|
com.google.common.util.concurrent.ListenableFuture<String> |
putBlob(String container,
Blob blob,
PutOptions options)
|
|
com.google.common.util.concurrent.ListenableFuture<Void> |
removeBlob(String container,
String key)
|
|
static HttpResponseException |
returnResponseException(int code)
|
Methods inherited from class org.jclouds.blobstore.internal.BaseAsyncBlobStore |
---|
blobBuilder, clearContainer, clearContainer, countBlobs, countBlobs, createDirectory, deleteAndEnsurePathGone, deleteDirectory, directoryExists, getBlob, getContext, list, listAssignableLocations, newBlob |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Logger logger
protected final DateService dateService
protected final Crypto crypto
protected final HttpGetOptionsListToGetOptions httpGetOptionsConverter
protected final IfDirectoryReturnNameStrategy ifDirectoryReturnName
protected final FilesystemStorageStrategy storageStrategy
Constructor Detail |
---|
@Inject protected FilesystemAsyncBlobStore(BlobStoreContext context, DateService dateService, Crypto crypto, HttpGetOptionsListToGetOptions httpGetOptionsConverter, IfDirectoryReturnNameStrategy ifDirectoryReturnName, 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, FilesystemStorageStrategy storageStrategy)
Method Detail |
---|
public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list(String container, ListContainerOptions options)
BlobStore.list(String, ListContainerOptions)
public static MutableBlobMetadata copy(MutableBlobMetadata in)
public static MutableBlobMetadata copy(MutableBlobMetadata in, String newKey)
public com.google.common.util.concurrent.ListenableFuture<Void> removeBlob(String container, String key)
BlobStore.removeBlob(java.lang.String, java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Boolean> containerExists(String containerName)
BlobStore.containerExists(java.lang.String)
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)
BlobStore.createContainerInLocation(Location, String)
public String getFirstQueryOrNull(String string, @Nullable HttpRequestOptions options)
public static <T extends Comparable<?>> SortedSet<T> firstSliceOfSize(Iterable<T> elements, int size)
public static HttpResponseException returnResponseException(int code)
public com.google.common.util.concurrent.ListenableFuture<String> putBlob(String containerName, Blob object)
BlobStore.putBlob(String,Blob)
public com.google.common.util.concurrent.ListenableFuture<Boolean> blobExists(String containerName, String key)
BlobStore.blobExists(java.lang.String, java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Blob> getBlob(String containerName, String key, GetOptions options)
BlobStore.getBlob(String, String, GetOptions)
public com.google.common.util.concurrent.ListenableFuture<BlobMetadata> blobMetadata(String container, String key)
BlobStore.blobMetadata(java.lang.String, java.lang.String)
protected boolean deleteAndVerifyContainerGone(String container)
deleteAndVerifyContainerGone
in class BaseAsyncBlobStore
public com.google.common.util.concurrent.ListenableFuture<Void> deleteContainer(String container)
deleteContainer
in interface AsyncBlobStore
deleteContainer
in class BaseAsyncBlobStore
container
-
BlobStore.deleteContainer(java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<String> putBlob(String container, Blob blob, PutOptions options)
BlobStore.putBlob(String,Blob,PutOptions)
public com.google.common.util.concurrent.ListenableFuture<Boolean> createContainerInLocation(Location location, String container, CreateContainerOptions options)
BlobStore.createContainerInLocation(Location,String,CreateContainerOptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |