@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() |
BlobRequestSigner |
getSigner()
Generates signed requests for blobs.
|
Utils |
getUtils() |
int |
hashCode() |
String |
toString() |
Utils |
utils() |
delegate, getBackendType, string, unwrap, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBackendType, 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 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 Utils getUtils()
getUtils
in interface BlobStoreContext
public Utils utils()
utils
in interface BlobStoreContext
BlobStoreContext.getUtils()
public BlobRequestSigner getSigner()
BlobStoreContext
getSigner
in interface BlobStoreContext
public void close()
BlobStoreContext
close
in interface Closeable
close
in interface AutoCloseable
close
in interface BlobStoreContext
Copyright © 2009-2013 jclouds. All Rights Reserved.