@Singleton public class AtmosBlobStore extends BaseBlobStore
blobUtils, context, defaultLocation, locations
blobBuilder, clearAndDeleteContainer, clearContainer, clearContainer, countBlobs, countBlobs, deleteContainer, getBlob, getContext, list, listAssignableLocations
public BlobMetadata blobMetadata(String container, String key)
AtmosClient.headFile(java.lang.String)
container
- container where this exists.key
- fully qualified name relative to the container.protected boolean deleteAndVerifyContainerGone(String container)
AtmosAsyncClient.deletePath(java.lang.String)
followed by
AtmosAsyncClient.pathExists(java.lang.String)
until it is true.deleteAndVerifyContainerGone
in class BaseBlobStore
public boolean createContainerInLocation(Location location, String container)
AtmosClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...)
location
- currently ignoredcontainer
- directory namepublic void createDirectory(String container, String directory)
AtmosClient.createDirectory(java.lang.String, org.jclouds.atmos.options.PutOptions...)
createDirectory
in interface BlobStore
createDirectory
in class BaseBlobStore
container
- directory namedirectory
- virtual pathpublic void deleteDirectory(String containerName, String directory)
removeBlob(java.lang.String, java.lang.String)
deleteDirectory
in interface BlobStore
deleteDirectory
in class BaseBlobStore
public boolean containerExists(String container)
AtmosClient.pathExists(java.lang.String)
public boolean directoryExists(String container, String directory)
AtmosClient.pathExists(java.lang.String)
directoryExists
in interface BlobStore
directoryExists
in class BaseBlobStore
container
- container where the directory residesdirectory
- virtual pathpublic boolean blobExists(String container, String key)
AtmosClient.pathExists(java.lang.String)
container
- containerkey
- file namepublic Blob getBlob(String container, String key, GetOptions options)
AtmosClient.readFile(java.lang.String, org.jclouds.http.options.GetOptions...)
container
- container where this exists.key
- fully qualified name relative to the container.options
- byte range or condition optionspublic PageSet<? extends StorageMetadata> list()
AtmosClient.listDirectories(org.jclouds.atmos.options.ListOptions...)
public PageSet<? extends StorageMetadata> list(String container, ListContainerOptions options)
AtmosClient.listDirectory(java.lang.String, org.jclouds.atmos.options.ListOptions...)
container
- what to listoptions
- size, recursion, and context of the listpublic String putBlob(String container, Blob blob)
AtmosClient.createFile(java.lang.String, org.jclouds.atmos.domain.AtmosObject, org.jclouds.atmos.options.PutOptions...)
Since there is no etag support in atmos, we just return the path.container
- container to place the blob.blob
- fully qualified name relative to the container.public String putBlob(String container, Blob blob, PutOptions options)
AtmosClient.createFile(java.lang.String, org.jclouds.atmos.domain.AtmosObject, org.jclouds.atmos.options.PutOptions...)
Since there is no etag support in atmos, we just return the path.container
- container to place the blob.blob
- fully qualified name relative to the container.options
- byte range optionspublic void removeBlob(String container, String key)
AtmosClient.deletePath(java.lang.String)
container
- container where this exists.key
- fully qualified name relative to the container.public boolean createContainerInLocation(Location location, String container, CreateContainerOptions options)
options
- controls default access controlBlobStore.createContainerInLocation(Location,String)
Copyright © 2009-2012 jclouds. All Rights Reserved.