public abstract class BaseBlobStore extends Object implements BlobStore
Modifier and Type | Field and Description |
---|---|
protected BlobUtils |
blobUtils |
protected BlobStoreContext |
context |
protected com.google.common.base.Supplier<Location> |
defaultLocation |
protected com.google.common.base.Supplier<Set<? extends Location>> |
locations |
Modifier | Constructor and Description |
---|---|
protected |
BaseBlobStore(BlobStoreContext context,
BlobUtils blobUtils,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blobExists, blobMetadata, containerExists, createContainerInLocation, createContainerInLocation, getBlob, list, list, putBlob, putBlob, removeBlob
protected final BlobStoreContext context
protected final BlobUtils blobUtils
protected final com.google.common.base.Supplier<Location> defaultLocation
public BlobStoreContext getContext()
getContext
in interface BlobStore
public BlobBuilder blobBuilder(String name)
BlobUtilsImpl.blobBuilder()
blobBuilder
in interface BlobStore
Blob
spublic PageSet<? extends StorageMetadata> list(String container)
BlobStore.list(String,org.jclouds.blobstore.options.ListContainerOptions)
public boolean directoryExists(String containerName, String directory)
BlobUtilsImpl.directoryExists(java.lang.String, java.lang.String)
directoryExists
in interface BlobStore
container
- container namedirectory
- virtual pathpublic void createDirectory(String containerName, String directory)
BlobUtilsImpl.createDirectory(java.lang.String, java.lang.String)
createDirectory
in interface BlobStore
container
- container namedirectory
- virtual pathpublic long countBlobs(String container)
countBlobs(java.lang.String)
with the
ListContainerOptions.recursive
option.countBlobs
in interface BlobStore
container
- container namepublic long countBlobs(String containerName, ListContainerOptions options)
BlobUtilsImpl.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)
countBlobs
in interface BlobStore
container
- container namepublic void clearContainer(String containerName)
clearContainer(java.lang.String)
with the
ListContainerOptions.recursive
option.clearContainer
in interface BlobStore
container
- container namepublic void clearContainer(String containerName, ListContainerOptions options)
BlobUtilsImpl.clearContainer(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)
clearContainer
in interface BlobStore
container
- container namepublic void deleteDirectory(String containerName, String directory)
BlobUtilsImpl.deleteDirectory(java.lang.String, java.lang.String)
.deleteDirectory
in interface BlobStore
container
- container namepublic Blob getBlob(String container, String key)
BlobStore.getBlob(String,String,org.jclouds.blobstore.options.GetOptions)
public void deleteContainer(String container)
#deleteAndEnsurePathGone
deleteContainer
in interface BlobStore
container
- bucket nameprotected void clearAndDeleteContainer(String container)
public Set<? extends Location> listAssignableLocations()
BlobStore
listAssignableLocations
in interface BlobStore
protected abstract boolean deleteAndVerifyContainerGone(String container)
Copyright © 2009-2012 jclouds. All Rights Reserved.