org.jclouds.filesystem.util.internal
Class FileSystemBlobUtilsImpl

java.lang.Object
  extended by org.jclouds.filesystem.util.internal.FileSystemBlobUtilsImpl
All Implemented Interfaces:
BlobUtils

public class FileSystemBlobUtilsImpl
extends Object
implements BlobUtils

Implements the BlobUtils interfaced and act as a bridge to FilesystemStorageStrategy when used inside AsyncBlobStore

Author:
Alfredo "Rainbowbreeze" Morresi

Field Summary
protected  javax.inject.Provider<BlobBuilder> blobBuilders
           
protected  FilesystemStorageStrategy storageStrategy
           
 
Constructor Summary
FileSystemBlobUtilsImpl(FilesystemStorageStrategy storageStrategy, javax.inject.Provider<BlobBuilder> blobBuilders)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storageStrategy

protected final FilesystemStorageStrategy storageStrategy

blobBuilders

protected final javax.inject.Provider<BlobBuilder> blobBuilders
Constructor Detail

FileSystemBlobUtilsImpl

@Inject
public FileSystemBlobUtilsImpl(FilesystemStorageStrategy storageStrategy,
                                      javax.inject.Provider<BlobBuilder> blobBuilders)
Method Detail

blobBuilder

public BlobBuilder blobBuilder()
Specified by:
blobBuilder in interface BlobUtils

directoryExists

public boolean directoryExists(String containerName,
                               String directory)
Specified by:
directoryExists in interface BlobUtils

createDirectory

public void createDirectory(String containerName,
                            String directory)
Specified by:
createDirectory in interface BlobUtils

countBlobs

public long countBlobs(String container,
                       ListContainerOptions options)
Specified by:
countBlobs in interface BlobUtils

clearContainer

public void clearContainer(String container,
                           ListContainerOptions options)
Specified by:
clearContainer in interface BlobUtils

deleteDirectory

public void deleteDirectory(String container,
                            String directory)
Specified by:
deleteDirectory in interface BlobUtils


Copyright © 2009-2012 jclouds. All Rights Reserved.