@Singleton public class BlobStoreContextImpl<S,A> extends Object implements BlobStoreContext
| Constructor and Description |
|---|
BlobStoreContextImpl(BlobMap.Factory blobMapFactory,
Utils utils,
ConsistencyModel consistencyModel,
InputStreamMap.Factory inputStreamMapFactory,
AsyncBlobStore ablobStore,
BlobStore blobStore,
RestContext providerSpecificContext,
BlobRequestSigner blobRequestSigner) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes threads and resources related to this connection.
|
BlobMap |
createBlobMap(String container)
Creates a
Map view of the specified container. |
BlobMap |
createBlobMap(String container,
ListContainerOptions options)
Creates a
Map view of the specified container. |
InputStreamMap |
createInputStreamMap(String container)
Creates a
Map view of the specified container. |
InputStreamMap |
createInputStreamMap(String container,
ListContainerOptions options)
Creates a
Map view of the specified container. |
boolean |
equals(Object obj) |
AsyncBlobStore |
getAsyncBlobStore() |
BlobStore |
getBlobStore() |
ConsistencyModel |
getConsistencyModel() |
RestContext<S,A> |
getProviderSpecificContext() |
BlobRequestSigner |
getSigner()
Generates signed requests for blobs.
|
Utils |
getUtils() |
int |
hashCode() |
String |
toString() |
Utils |
utils() |
@Inject public BlobStoreContextImpl(BlobMap.Factory blobMapFactory, Utils utils, ConsistencyModel consistencyModel, InputStreamMap.Factory inputStreamMapFactory, AsyncBlobStore ablobStore, BlobStore blobStore, RestContext providerSpecificContext, BlobRequestSigner blobRequestSigner)
public ConsistencyModel getConsistencyModel()
getConsistencyModel in interface BlobStoreContextpublic BlobMap createBlobMap(String container, ListContainerOptions options)
BlobStoreContextMap view of the specified container. Use this when you wan
to control the content type, or manually specify length or size of blobs.createBlobMap in interface BlobStoreContextcontainer - existing container you wish to read or modifyoptions - allow you to specify a directory within the container, or whether to list
recursively.public BlobMap createBlobMap(String container)
BlobStoreContextMap view of the specified container. Use this when you wan
to control the content type, or manually specify length or size of blobs.
Only root-level blobs will be visible.createBlobMap in interface BlobStoreContextcontainer - existing container you wish to read or modifypublic InputStreamMap createInputStreamMap(String container, ListContainerOptions options)
BlobStoreContextMap view of the specified container. Use this for
simplest access to blobstore, knowing that MD5s will be calculated for every object.createInputStreamMap in interface BlobStoreContextcontainer - existing container you wish to read or modifyoptions - allow you to specify a directory within the container, or whether to list
recursively.public InputStreamMap createInputStreamMap(String container)
BlobStoreContextMap view of the specified container. Use this for
simplest access to blobstore, knowing that MD5s will be calculated for every object.
Only root-level blobs will be visible.createInputStreamMap in interface BlobStoreContextcontainer - existing container you wish to read or modifypublic BlobStore getBlobStore()
getBlobStore in interface BlobStoreContextpublic AsyncBlobStore getAsyncBlobStore()
getAsyncBlobStore in interface BlobStoreContextFutures for
each call.public RestContext<S,A> getProviderSpecificContext()
getProviderSpecificContext in interface BlobStoreContextpublic void close()
BlobStoreContextclose in interface BlobStoreContextpublic Utils getUtils()
getUtils in interface BlobStoreContextpublic Utils utils()
utils in interface BlobStoreContextBlobStoreContext.getUtils()public BlobRequestSigner getSigner()
BlobStoreContextgetSigner in interface BlobStoreContextCopyright © 2009-2012 jclouds. All Rights Reserved.