public class FileSystemBlobUtilsImpl extends Object implements BlobUtils
BlobUtils
interfaced and act as a bridge to
LocalStorageStrategy
when used inside BlobStore
Modifier and Type | Field and Description |
---|---|
protected javax.inject.Provider<BlobBuilder> |
blobBuilders |
protected FilesystemStorageStrategyImpl |
storageStrategy |
Constructor and Description |
---|
FileSystemBlobUtilsImpl(LocalStorageStrategy storageStrategy,
javax.inject.Provider<BlobBuilder> blobBuilders) |
Modifier and Type | Method and 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) |
protected final FilesystemStorageStrategyImpl storageStrategy
protected final javax.inject.Provider<BlobBuilder> blobBuilders
@Inject public FileSystemBlobUtilsImpl(LocalStorageStrategy storageStrategy, javax.inject.Provider<BlobBuilder> blobBuilders)
public BlobBuilder blobBuilder()
blobBuilder
in interface BlobUtils
public boolean directoryExists(String containerName, String directory)
directoryExists
in interface BlobUtils
public void createDirectory(String containerName, String directory)
createDirectory
in interface BlobUtils
public long countBlobs(String container, ListContainerOptions options)
countBlobs
in interface BlobUtils
public void clearContainer(String container, ListContainerOptions options)
clearContainer
in interface BlobUtils
public void deleteDirectory(String container, String directory)
deleteDirectory
in interface BlobUtils
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.