Class BlobUtilsImpl
- java.lang.Object
-
- org.jclouds.blobstore.util.internal.BlobUtilsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.inject.Provider<BlobBuilder>
blobBuilders
protected ClearListStrategy
clearContainerStrategy
protected CountListStrategy
countBlobsStrategy
protected GetDirectoryStrategy
getDirectoryStrategy
protected MkdirStrategy
mkdirStrategy
protected DeleteDirectoryStrategy
rmDirStrategy
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlobUtilsImpl(javax.inject.Provider<BlobBuilder> blobBuilders, ClearListStrategy clearContainerStrategy, GetDirectoryStrategy getDirectoryStrategy, MkdirStrategy mkdirStrategy, CountListStrategy countBlobsStrategy, DeleteDirectoryStrategy rmDirStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobBuilder
blobBuilder()
void
clearContainer(String container, ListContainerOptions options)
long
countBlobs(String container, ListContainerOptions options)
void
createDirectory(String containerName, String directory)
void
deleteDirectory(String container, String directory)
boolean
directoryExists(String containerName, String directory)
-
-
-
Field Detail
-
blobBuilders
protected final javax.inject.Provider<BlobBuilder> blobBuilders
-
clearContainerStrategy
protected final ClearListStrategy clearContainerStrategy
-
getDirectoryStrategy
protected final GetDirectoryStrategy getDirectoryStrategy
-
mkdirStrategy
protected final MkdirStrategy mkdirStrategy
-
rmDirStrategy
protected final DeleteDirectoryStrategy rmDirStrategy
-
countBlobsStrategy
protected final CountListStrategy countBlobsStrategy
-
-
Constructor Detail
-
BlobUtilsImpl
@Inject protected BlobUtilsImpl(javax.inject.Provider<BlobBuilder> blobBuilders, ClearListStrategy clearContainerStrategy, GetDirectoryStrategy getDirectoryStrategy, MkdirStrategy mkdirStrategy, CountListStrategy countBlobsStrategy, DeleteDirectoryStrategy rmDirStrategy)
-
-
Method Detail
-
blobBuilder
public BlobBuilder blobBuilder()
- Specified by:
blobBuilder
in interfaceBlobUtils
-
directoryExists
public boolean directoryExists(String containerName, String directory)
- Specified by:
directoryExists
in interfaceBlobUtils
-
createDirectory
public void createDirectory(String containerName, String directory)
- Specified by:
createDirectory
in interfaceBlobUtils
-
countBlobs
public long countBlobs(String container, ListContainerOptions options)
- Specified by:
countBlobs
in interfaceBlobUtils
-
clearContainer
public void clearContainer(String container, ListContainerOptions options)
- Specified by:
clearContainer
in interfaceBlobUtils
-
deleteDirectory
public void deleteDirectory(String container, String directory)
- Specified by:
deleteDirectory
in interfaceBlobUtils
-
-