|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.blobstore.internal.BaseBlobStore
public abstract class BaseBlobStore
Field Summary | |
---|---|
protected BlobUtils |
blobUtils
|
protected BlobStoreContext |
context
|
protected com.google.common.base.Supplier<Location> |
defaultLocation
|
protected com.google.common.base.Supplier<Set<? extends Location>> |
locations
|
Constructor Summary | |
---|---|
protected |
BaseBlobStore(BlobStoreContext context,
BlobUtils blobUtils,
com.google.common.base.Supplier<Location> defaultLocation,
com.google.common.base.Supplier<Set<? extends Location>> locations)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jclouds.blobstore.BlobStore |
---|
blobExists, blobMetadata, containerExists, createContainerInLocation, createContainerInLocation, getBlob, list, list, putBlob, putBlob, removeBlob |
Field Detail |
---|
protected final BlobStoreContext context
protected final BlobUtils blobUtils
protected final com.google.common.base.Supplier<Location> defaultLocation
protected final com.google.common.base.Supplier<Set<? extends Location>> locations
Constructor Detail |
---|
@Inject protected BaseBlobStore(BlobStoreContext context, BlobUtils blobUtils, com.google.common.base.Supplier<Location> defaultLocation, com.google.common.base.Supplier<Set<? extends Location>> locations)
Method Detail |
---|
public BlobStoreContext getContext()
getContext
in interface BlobStore
public Blob newBlob(String name)
BlobUtilsImpl.newBlob(java.lang.String)
newBlob
in interface BlobStore
BlobStore.blobBuilder(java.lang.String)
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)
list
in interface BlobStore
container
- container name
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 name
public long countBlobs(String containerName, ListContainerOptions options)
BlobUtilsImpl.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)
countBlobs
in interface BlobStore
container
- container name
public 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)
getBlob
in interface BlobStore
container
- container namekey
- blob key
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |