Package org.jclouds.blobstore.internal
Class BlobStoreContextImpl
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.jclouds.internal.BaseView
-
- org.jclouds.blobstore.internal.BlobStoreContextImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BlobStoreContext,View
- Direct Known Subclasses:
S3BlobStoreContextImpl
@Singleton public class BlobStoreContextImpl extends BaseView implements BlobStoreContext
-
-
Constructor Summary
Constructors Constructor Description BlobStoreContextImpl(Context backend, com.google.common.reflect.TypeToken<? extends Context> backendType, Utils utils, ConsistencyModel consistencyModel, BlobStore blobStore, BlobRequestSigner blobRequestSigner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()closes threads and resources related to this connection.booleanequals(Object obj)BlobStoregetBlobStore()ConsistencyModelgetConsistencyModel()BlobRequestSignergetSigner()Generates signed requests for blobs.inthashCode()StringtoString()Utilsutils()-
Methods inherited from class org.jclouds.internal.BaseView
delegate, getBackendType, string, unwrap, unwrap, unwrapApi
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jclouds.View
getBackendType, unwrap, unwrap, unwrapApi
-
-
-
-
Constructor Detail
-
BlobStoreContextImpl
@Inject public BlobStoreContextImpl(Context backend, com.google.common.reflect.TypeToken<? extends Context> backendType, Utils utils, ConsistencyModel consistencyModel, BlobStore blobStore, BlobRequestSigner blobRequestSigner)
-
-
Method Detail
-
getConsistencyModel
public ConsistencyModel getConsistencyModel()
- Specified by:
getConsistencyModelin interfaceBlobStoreContext- Returns:
- best guess at the consistency model used in this BlobStore.
-
getBlobStore
public BlobStore getBlobStore()
- Specified by:
getBlobStorein interfaceBlobStoreContext- Returns:
- a portable interface for the BlobStore.
-
utils
public Utils utils()
- Specified by:
utilsin interfaceBlobStoreContext
-
getSigner
public BlobRequestSigner getSigner()
Description copied from interface:BlobStoreContextGenerates signed requests for blobs. useful in other tools such as backup utilities.- Specified by:
getSignerin interfaceBlobStoreContext
-
close
public void close()
Description copied from interface:BlobStoreContextcloses threads and resources related to this connection.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBlobStoreContext- Specified by:
closein interfaceCloseable
-
-