org.jclouds.blobstore
Interface BlobStoreContext

All Known Implementing Classes:
BlobStoreContextImpl

public interface BlobStoreContext

Represents a cloud that has key-value storage functionality. This object is scoped to a service and an identity.

Author:
Adrian Cole

Method Summary
 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.
 AsyncBlobStore getAsyncBlobStore()
           
 BlobStore getBlobStore()
           
 ConsistencyModel getConsistencyModel()
           
<S,A> RestContext<S,A>
getProviderSpecificContext()
           
 BlobRequestSigner getSigner()
          Generates signed requests for blobs.
 Utils getUtils()
           
 Utils utils()
           
 

Method Detail

getSigner

BlobRequestSigner getSigner()
Generates signed requests for blobs. useful in other tools such as backup utilities.


createInputStreamMap

InputStreamMap createInputStreamMap(String container,
                                    ListContainerOptions options)
Creates a Map view of the specified container. Use this for simplest access to blobstore, knowing that MD5s will be calculated for every object.

Parameters:
container - existing container you wish to read or modify
options - allow you to specify a directory within the container, or whether to list recursively.

createInputStreamMap

InputStreamMap createInputStreamMap(String container)
Creates a 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.

Parameters:
container - existing container you wish to read or modify

createBlobMap

BlobMap createBlobMap(String container,
                      ListContainerOptions options)
Creates a Map view of the specified container. Use this when you wan to control the content type, or manually specify length or size of blobs.

Parameters:
container - existing container you wish to read or modify
options - allow you to specify a directory within the container, or whether to list recursively.

createBlobMap

BlobMap createBlobMap(String container)
Creates a 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.

Parameters:
container - existing container you wish to read or modify

getAsyncBlobStore

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

getBlobStore

BlobStore getBlobStore()
Returns:
a portable interface for the BlobStore.

getConsistencyModel

ConsistencyModel getConsistencyModel()
Returns:
best guess at the consistency model used in this BlobStore.

getProviderSpecificContext

<S,A> RestContext<S,A> getProviderSpecificContext()
Returns:
a context you can use to the access provider or vendor specific api underlying this context.

getUtils

Utils getUtils()

utils

Utils utils()
See Also:
getUtils()

close

void close()
closes threads and resources related to this connection.



Copyright © 2009-2011 jclouds. All Rights Reserved.