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 void
close()
closes threads and resources related to this connection.boolean
equals(Object obj)
BlobStore
getBlobStore()
ConsistencyModel
getConsistencyModel()
BlobRequestSigner
getSigner()
Generates signed requests for blobs.int
hashCode()
String
toString()
Utils
utils()
-
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:
getConsistencyModel
in interfaceBlobStoreContext
- Returns:
- best guess at the consistency model used in this BlobStore.
-
getBlobStore
public BlobStore getBlobStore()
- Specified by:
getBlobStore
in interfaceBlobStoreContext
- Returns:
- a portable interface for the BlobStore.
-
utils
public Utils utils()
- Specified by:
utils
in interfaceBlobStoreContext
-
getSigner
public BlobRequestSigner getSigner()
Description copied from interface:BlobStoreContext
Generates signed requests for blobs. useful in other tools such as backup utilities.- Specified by:
getSigner
in interfaceBlobStoreContext
-
close
public void close()
Description copied from interface:BlobStoreContext
closes threads and resources related to this connection.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBlobStoreContext
- Specified by:
close
in interfaceCloseable
-
-