org.jclouds.blobstore.internal
Class BlobStoreContextImpl

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by org.jclouds.internal.BaseView
          extended by org.jclouds.blobstore.internal.BlobStoreContextImpl
All Implemented Interfaces:
Closeable, BlobStoreContext, org.jclouds.View

@Singleton
public class BlobStoreContextImpl
extends org.jclouds.internal.BaseView
implements BlobStoreContext

Author:
Adrian Cole

Constructor Summary
BlobStoreContextImpl(org.jclouds.Context backend, com.google.common.reflect.TypeToken<? extends org.jclouds.Context> backendType, org.jclouds.rest.Utils utils, ConsistencyModel consistencyModel, AsyncBlobStore ablobStore, BlobStore blobStore, BlobRequestSigner blobRequestSigner)
           
 
Method Summary
 void close()
          closes threads and resources related to this connection.
 boolean equals(Object obj)
           
 AsyncBlobStore getAsyncBlobStore()
           
 BlobStore getBlobStore()
           
 ConsistencyModel getConsistencyModel()
           
 BlobRequestSigner getSigner()
          Generates signed requests for blobs.
 int hashCode()
           
 String toString()
           
 org.jclouds.rest.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(org.jclouds.Context backend,
                                   com.google.common.reflect.TypeToken<? extends org.jclouds.Context> backendType,
                                   org.jclouds.rest.Utils utils,
                                   ConsistencyModel consistencyModel,
                                   AsyncBlobStore ablobStore,
                                   BlobStore blobStore,
                                   BlobRequestSigner blobRequestSigner)
Method Detail

getConsistencyModel

public ConsistencyModel getConsistencyModel()
Specified by:
getConsistencyModel in interface BlobStoreContext
Returns:
best guess at the consistency model used in this BlobStore.

getBlobStore

public BlobStore getBlobStore()
Specified by:
getBlobStore in interface BlobStoreContext
Returns:
a portable interface for the BlobStore.

getAsyncBlobStore

public AsyncBlobStore getAsyncBlobStore()
Specified by:
getAsyncBlobStore in interface BlobStoreContext
Returns:
a portable asynchronous interface for the BlobStore, which returns Futures for each call.

utils

public org.jclouds.rest.Utils utils()
Specified by:
utils in interface BlobStoreContext

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 interface BlobStoreContext

close

public void close()
Description copied from interface: BlobStoreContext
closes threads and resources related to this connection.

Specified by:
close in interface Closeable
Specified by:
close in interface BlobStoreContext

hashCode

public int hashCode()
Overrides:
hashCode in class org.jclouds.internal.BaseView

toString

public String toString()
Overrides:
toString in class org.jclouds.internal.BaseView

equals

public boolean equals(Object obj)
Overrides:
equals in class org.jclouds.internal.BaseView


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.