@Singleton public class BlobStoreContextImpl extends BaseView implements BlobStoreContext
| Constructor and Description |
|---|
BlobStoreContextImpl(Context backend,
com.google.common.reflect.TypeToken<? extends Context> backendType,
BlobMap.Factory blobMapFactory,
Utils utils,
ConsistencyModel consistencyModel,
InputStreamMap.Factory inputStreamMapFactory,
AsyncBlobStore ablobStore,
BlobStore blobStore,
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() |
<S,A> RestContext<S,A> |
getProviderSpecificContext()
will be removed in jclouds 1.6
|
BlobRequestSigner |
getSigner()
Generates signed requests for blobs.
|
Utils |
getUtils() |
int |
hashCode() |
String |
toString() |
Utils |
utils() |
delegate, getBackendType, string, unwrap, unwrap, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBackendType, unwrap, unwrap, unwrap@Inject public BlobStoreContextImpl(Context backend, com.google.common.reflect.TypeToken<? extends Context> backendType, BlobMap.Factory blobMapFactory, Utils utils, ConsistencyModel consistencyModel, InputStreamMap.Factory inputStreamMapFactory, AsyncBlobStore ablobStore, BlobStore blobStore, 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 Utils getUtils()
getUtils in interface BlobStoreContextpublic Utils utils()
utils in interface BlobStoreContextBlobStoreContext.getUtils()public BlobRequestSigner getSigner()
BlobStoreContextgetSigner in interface BlobStoreContextpublic <S,A> RestContext<S,A> getProviderSpecificContext()
BlobStoreContextgetProviderSpecificContext in interface BlobStoreContextView#getInputType,
View.unwrap(com.google.common.reflect.TypeToken<C>)public void close()
BlobStoreContextclose in interface Closeableclose in interface AutoCloseableclose in interface BlobStoreContextCopyright © 2009-2013 jclouds. All Rights Reserved.