@Singleton public class AtmosAsyncBlobStore extends BaseAsyncBlobStore
blobUtils, context, defaultLocation, locations, service
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
blobExists(String container,
String key)
This implementation invokes
AtmosAsyncClient.pathExists(java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<BlobMetadata> |
blobMetadata(String container,
String key)
This implementation invokes
AtmosAsyncClient.headFile(java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
containerExists(String container)
This implementation invokes
AtmosAsyncClient.pathExists(java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
createContainerInLocation(Location location,
String container)
This implementation invokes
AtmosAsyncClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...)
Note location is ignored |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
createContainerInLocation(Location location,
String container,
CreateContainerOptions options) |
com.google.common.util.concurrent.ListenableFuture<Void> |
createDirectory(String container,
String directory)
This implementation invokes
AtmosAsyncClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...) |
protected boolean |
deleteAndVerifyContainerGone(String container)
This implementation invokes
AtmosAsyncClient.deletePath(java.lang.String) followed by
AtmosAsyncClient.pathExists(java.lang.String) until it is true. |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteDirectory(String containerName,
String directory)
This implementation invokes
removeBlob(java.lang.String, java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
directoryExists(String container,
String directory)
This implementation invokes
AtmosAsyncClient.pathExists(java.lang.String) |
com.google.common.util.concurrent.ListenableFuture<Blob> |
getBlob(String container,
String key,
GetOptions options)
This implementation invokes
AtmosAsyncClient.readFile(java.lang.String, org.jclouds.http.options.GetOptions...) |
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> |
list()
This implementation invokes
AtmosAsyncClient.listDirectories(org.jclouds.atmos.options.ListOptions...) |
com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> |
list(String container,
ListContainerOptions options)
This implementation invokes
AtmosAsyncClient.listDirectory(java.lang.String, org.jclouds.atmos.options.ListOptions...) |
com.google.common.util.concurrent.ListenableFuture<String> |
putBlob(String container,
Blob blob)
This implementation invokes
AtmosAsyncClient.createFile(java.lang.String, org.jclouds.atmos.domain.AtmosObject, org.jclouds.atmos.options.PutOptions...)
Since there is no etag support in atmos, we just return the path. |
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)
This implementation invokes
AtmosAsyncClient.deletePath(java.lang.String) |
blobBuilder, clearContainer, clearContainer, countBlobs, countBlobs, deleteAndEnsurePathGone, deleteContainer, getBlob, getContext, list, listAssignableLocations
public com.google.common.util.concurrent.ListenableFuture<BlobMetadata> blobMetadata(String container, String key)
AtmosAsyncClient.headFile(java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Boolean> createContainerInLocation(Location location, String container)
AtmosAsyncClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...)
Note location is ignoredpublic com.google.common.util.concurrent.ListenableFuture<Void> createDirectory(String container, String directory)
AtmosAsyncClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...)
createDirectory
in interface AsyncBlobStore
createDirectory
in class BaseAsyncBlobStore
directory
- virtual pathBlobStore.createDirectory(java.lang.String, java.lang.String)
protected boolean deleteAndVerifyContainerGone(String container)
AtmosAsyncClient.deletePath(java.lang.String)
followed by
AtmosAsyncClient.pathExists(java.lang.String)
until it is true.deleteAndVerifyContainerGone
in class BaseAsyncBlobStore
public com.google.common.util.concurrent.ListenableFuture<Boolean> containerExists(String container)
AtmosAsyncClient.pathExists(java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Boolean> directoryExists(String container, String directory)
AtmosAsyncClient.pathExists(java.lang.String)
directoryExists
in interface AsyncBlobStore
directoryExists
in class BaseAsyncBlobStore
directory
- virtual pathBlobStore.directoryExists(java.lang.String, java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Void> deleteDirectory(String containerName, String directory)
removeBlob(java.lang.String, java.lang.String)
deleteDirectory
in interface AsyncBlobStore
deleteDirectory
in class BaseAsyncBlobStore
BlobStore.deleteDirectory(java.lang.String, java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Boolean> blobExists(String container, String key)
AtmosAsyncClient.pathExists(java.lang.String)
container
- containerkey
- file nameBlobStore.blobExists(java.lang.String, java.lang.String)
public com.google.common.util.concurrent.ListenableFuture<Blob> getBlob(String container, String key, GetOptions options)
AtmosAsyncClient.readFile(java.lang.String, org.jclouds.http.options.GetOptions...)
public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list()
AtmosAsyncClient.listDirectories(org.jclouds.atmos.options.ListOptions...)
BlobStore.list()
public com.google.common.util.concurrent.ListenableFuture<PageSet<? extends StorageMetadata>> list(String container, ListContainerOptions options)
AtmosAsyncClient.listDirectory(java.lang.String, org.jclouds.atmos.options.ListOptions...)
public com.google.common.util.concurrent.ListenableFuture<String> putBlob(String container, Blob blob)
AtmosAsyncClient.createFile(java.lang.String, org.jclouds.atmos.domain.AtmosObject, org.jclouds.atmos.options.PutOptions...)
Since there is no etag support in atmos, we just return the path.BlobStore.putBlob(String,Blob)
public com.google.common.util.concurrent.ListenableFuture<Void> removeBlob(String container, String key)
AtmosAsyncClient.deletePath(java.lang.String)
public 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.