|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.blobstore.internal.BaseBlobStore org.jclouds.s3.blobstore.S3BlobStore
@Singleton public class S3BlobStore
Field Summary |
---|
Fields inherited from class org.jclouds.blobstore.internal.BaseBlobStore |
---|
blobUtils, context, defaultLocation, locations |
Constructor Summary | |
---|---|
protected |
S3BlobStore(BlobStoreContext context,
BlobUtils blobUtils,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations,
S3Client sync,
BucketToResourceMetadata bucket2ResourceMd,
ContainerToBucketListOptions container2BucketListOptions,
BucketToResourceList bucket2ResourceList,
ObjectToBlob object2Blob,
BlobToHttpGetOptions blob2ObjectGetOptions,
BlobToObject blob2Object,
ObjectToBlobMetadata object2BlobMd,
javax.inject.Provider<FetchBlobMetadata> fetchBlobMetadataProvider,
Map<String,AccessControlList> bucketAcls)
|
Methods inherited from class org.jclouds.blobstore.internal.BaseBlobStore |
---|
blobBuilder, clearContainer, clearContainer, countBlobs, countBlobs, createDirectory, deleteDirectory, directoryExists, getBlob, getContext, list, listAssignableLocations, newBlob |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject protected S3BlobStore(BlobStoreContext context, BlobUtils blobUtils, com.google.common.base.Supplier<Location> defaultLocation, com.google.common.base.Supplier<Set<? extends Location>> locations, S3Client sync, BucketToResourceMetadata bucket2ResourceMd, ContainerToBucketListOptions container2BucketListOptions, BucketToResourceList bucket2ResourceList, ObjectToBlob object2Blob, BlobToHttpGetOptions blob2ObjectGetOptions, BlobToObject blob2Object, ObjectToBlobMetadata object2BlobMd, javax.inject.Provider<FetchBlobMetadata> fetchBlobMetadataProvider, Map<String,AccessControlList> bucketAcls)
Method Detail |
---|
public PageSet<? extends StorageMetadata> list()
S3Client.listOwnedBuckets()
public boolean containerExists(String container)
S3Client.bucketExists(java.lang.String)
container
- bucket namepublic boolean createContainerInLocation(Location location, String container)
S3Client.putBucketInRegion(java.lang.String, java.lang.String, org.jclouds.s3.options.PutBucketOptions...)
location
- corresponds to a Regioncontainer
- bucket name
public PageSet<? extends StorageMetadata> list(String container, ListContainerOptions options)
S3Client.listBucket(java.lang.String, org.jclouds.s3.options.ListBucketOptions...)
container
- bucket nameoptions
- size, recursion, and context of the list
public void deleteContainer(String container)
#deleteAndEnsurePathGone
deleteContainer
in interface BlobStore
deleteContainer
in class BaseBlobStore
container
- bucket namepublic void clearAndDeleteContainer(String container)
BaseBlobStore.clearContainer(java.lang.String)
then S3Client.deleteBucketIfEmpty(java.lang.String)
until it is true.
clearAndDeleteContainer
in class BaseBlobStore
public boolean blobExists(String container, String key)
S3Client.objectExists(java.lang.String, java.lang.String)
container
- bucket namekey
- object keypublic BlobMetadata blobMetadata(String container, String key)
S3Client.headObject(java.lang.String, java.lang.String)
container
- bucket namekey
- object key
public Blob getBlob(String container, String key, GetOptions optionsList)
S3Client.getObject(java.lang.String, java.lang.String, org.jclouds.http.options.GetOptions...)
container
- bucket namekey
- object keyoptionsList
- byte range or condition options
public String putBlob(String container, Blob blob)
S3Client.putObject(java.lang.String, org.jclouds.s3.domain.S3Object, org.jclouds.s3.options.PutObjectOptions...)
container
- bucket nameblob
- object
public String putBlob(String container, Blob blob, PutOptions options)
S3Client.putObject(java.lang.String, org.jclouds.s3.domain.S3Object, org.jclouds.s3.options.PutObjectOptions...)
container
- bucket nameblob
- objectoptions
- byte range options
public void removeBlob(String container, String key)
S3Client.deleteObject(java.lang.String, java.lang.String)
container
- bucket namekey
- object keyprotected boolean deleteAndVerifyContainerGone(String container)
S3Utils.deleteAndVerifyContainerGone(org.jclouds.s3.S3Client, java.lang.String)
deleteAndVerifyContainerGone
in class BaseBlobStore
public boolean createContainerInLocation(Location location, String container, CreateContainerOptions options)
options
- controls default access controlBlobStore.createContainerInLocation(Location,String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |