@Singleton public class SwiftBlobStore extends BaseBlobStore
blobUtils, context, defaultLocation, locations
Modifier | Constructor and Description |
---|---|
protected |
SwiftBlobStore(BlobStoreContext context,
BlobUtils blobUtils,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations,
CommonSwiftClient sync,
ContainerToResourceMetadata container2ResourceMd,
BlobStoreListContainerOptionsToListContainerOptions container2ContainerListOptions,
ContainerToResourceList container2ResourceList,
ObjectToBlob object2Blob,
BlobToObject blob2Object,
ObjectToBlobMetadata object2BlobMd,
BlobToHttpGetOptions blob2ObjectGetOptions,
javax.inject.Provider<FetchBlobMetadata> fetchBlobMetadataProvider,
javax.inject.Provider<MultipartUploadStrategy> multipartUploadStrategy) |
blobBuilder, clearContainer, clearContainer, countBlobs, countBlobs, createDirectory, deleteContainer, deleteDirectory, deletePathAndEnsureGone, directoryExists, getBlob, getContext, list, listAssignableLocations
@Inject protected SwiftBlobStore(BlobStoreContext context, BlobUtils blobUtils, com.google.common.base.Supplier<Location> defaultLocation, com.google.common.base.Supplier<Set<? extends Location>> locations, CommonSwiftClient sync, ContainerToResourceMetadata container2ResourceMd, BlobStoreListContainerOptionsToListContainerOptions container2ContainerListOptions, ContainerToResourceList container2ResourceList, ObjectToBlob object2Blob, BlobToObject blob2Object, ObjectToBlobMetadata object2BlobMd, BlobToHttpGetOptions blob2ObjectGetOptions, javax.inject.Provider<FetchBlobMetadata> fetchBlobMetadataProvider, javax.inject.Provider<MultipartUploadStrategy> multipartUploadStrategy)
public PageSet<? extends StorageMetadata> list()
CommonSwiftClient.listContainers(org.jclouds.openstack.swift.options.ListContainerOptions...)
public boolean containerExists(String container)
CommonSwiftClient.containerExists(java.lang.String)
container
- container namepublic boolean createContainerInLocation(Location location, String container)
CommonSwiftClient.createContainer(java.lang.String)
location
- currently ignoredcontainer
- container namepublic PageSet<? extends StorageMetadata> list(String container, ListContainerOptions options)
CommonSwiftClient.listObjects(java.lang.String, org.jclouds.openstack.swift.options.ListContainerOptions...)
container
- container nameoptions
- size, recursion, and context of the listpublic boolean blobExists(String container, String key)
CommonSwiftClient.objectExists(java.lang.String, java.lang.String)
container
- container namekey
- file namepublic BlobMetadata blobMetadata(String container, String key)
CommonSwiftClient.getObjectInfo(java.lang.String, java.lang.String)
container
- container namekey
- file namepublic Blob getBlob(String container, String key, GetOptions optionsList)
CommonSwiftClient.getObject(java.lang.String, java.lang.String, org.jclouds.http.options.GetOptions...)
container
- container namekey
- file nameoptionsList
- byte range or condition optionspublic String putBlob(String container, Blob blob)
CommonSwiftClient.putObject(java.lang.String, org.jclouds.openstack.swift.domain.SwiftObject)
container
- container nameblob
- objectpublic String putBlob(String container, Blob blob, PutOptions options)
CommonSwiftClient.putObject(java.lang.String, org.jclouds.openstack.swift.domain.SwiftObject)
container
- container nameblob
- objectoptions
- byte range optionspublic void removeBlob(String container, String key)
CommonSwiftClient.removeObject(java.lang.String, java.lang.String)
container
- container namekey
- file nameprotected boolean deleteAndVerifyContainerGone(String container)
deleteAndVerifyContainerGone
in class BaseBlobStore
public boolean createContainerInLocation(Location location, String container, CreateContainerOptions options)
options
- controls default access controlBlobStore.createContainerInLocation(Location,String)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.