org.jclouds.blobstore.util.internal
Class BlobUtilsImpl

java.lang.Object
  extended by org.jclouds.blobstore.util.internal.BlobUtilsImpl
All Implemented Interfaces:
BlobUtils

@Singleton
public class BlobUtilsImpl
extends Object
implements BlobUtils

Encryption, Hashing, and IO Utilities needed to sign and verify blobstore requests and responses.

Author:
Adrian Cole

Field Summary
protected  javax.inject.Provider<BlobBuilder> blobBuilders
           
protected  ClearListStrategy clearContainerStrategy
           
protected  CountListStrategy countBlobsStrategy
           
protected  GetDirectoryStrategy getDirectoryStrategy
           
protected  MkdirStrategy mkdirStrategy
           
protected  DeleteDirectoryStrategy rmDirStrategy
           
 
Constructor Summary
protected BlobUtilsImpl(javax.inject.Provider<BlobBuilder> blobBuilders, ClearListStrategy clearContainerStrategy, GetDirectoryStrategy getDirectoryStrategy, MkdirStrategy mkdirStrategy, CountListStrategy countBlobsStrategy, DeleteDirectoryStrategy rmDirStrategy)
           
 
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

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 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.