@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 BlobStoreContext
public BlobMap createBlobMap(String container, ListContainerOptions options)
BlobStoreContext
Map
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 BlobStoreContext
container
- 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)
BlobStoreContext
Map
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 BlobStoreContext
container
- existing container you wish to read or modifypublic InputStreamMap createInputStreamMap(String container, ListContainerOptions options)
BlobStoreContext
Map
view of the specified container. Use this for
simplest access to blobstore, knowing that MD5s will be calculated for every object.createInputStreamMap
in interface BlobStoreContext
container
- 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)
BlobStoreContext
Map
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 BlobStoreContext
container
- existing container you wish to read or modifypublic BlobStore getBlobStore()
getBlobStore
in interface BlobStoreContext
public AsyncBlobStore getAsyncBlobStore()
getAsyncBlobStore
in interface BlobStoreContext
Future
s for
each call.public RestContext<S,A> getProviderSpecificContext()
getProviderSpecificContext
in interface BlobStoreContext
public void close()
BlobStoreContext
close
in interface BlobStoreContext
public Utils getUtils()
getUtils
in interface BlobStoreContext
public Utils utils()
utils
in interface BlobStoreContext
BlobStoreContext.getUtils()
public BlobRequestSigner getSigner()
BlobStoreContext
getSigner
in interface BlobStoreContext
Copyright © 2009-2012 jclouds. All Rights Reserved.