@Singleton public class SwiftBlobStore extends BaseBlobStore
blobUtils, context, defaultLocation, locations
Modifier | Constructor and Description |
---|---|
protected |
SwiftBlobStore(com.google.common.util.concurrent.ListeningExecutorService userExecutor,
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, copyBlob, countBlobs, countBlobs, createDirectory, deleteContainer, deleteContainerIfEmpty, deleteDirectory, deletePathAndEnsureGone, directoryExists, getBlob, getContext, list, listAssignableLocations, removeBlobs
@Inject protected SwiftBlobStore(@Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, 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)
BaseBlobStore
deleteAndVerifyContainerGone
in class BaseBlobStore
container
- what to deletepublic boolean createContainerInLocation(Location location, String container, CreateContainerOptions options)
options
- controls default access controlBlobStore.createContainerInLocation(Location,String)
public ContainerAccess getContainerAccess(String container)
public void setContainerAccess(String container, ContainerAccess access)
public BlobAccess getBlobAccess(String container, String name)
public void setBlobAccess(String containe, String namer, BlobAccess access)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.