org.jclouds.blobstore.strategy.internal
Class FetchBlobMetadata

java.lang.Object
  extended by org.jclouds.blobstore.strategy.internal.FetchBlobMetadata
All Implemented Interfaces:
com.google.common.base.Function<PageSet<? extends StorageMetadata>,PageSet<? extends StorageMetadata>>

@NotThreadSafe
public class FetchBlobMetadata
extends Object
implements com.google.common.base.Function<PageSet<? extends StorageMetadata>,PageSet<? extends StorageMetadata>>

Retrieves all blobmetadata in the list as efficiently as possible

Author:
Adrian Cole

Field Summary
protected  AsyncBlobStore ablobstore
           
protected  Logger logger
           
protected  Long maxTime
          maximum duration of an blob Request
protected  BackoffLimitedRetryHandler retryHandler
           
protected  ExecutorService userExecutor
           
 
Method Summary
 PageSet<? extends StorageMetadata> apply(PageSet<? extends StorageMetadata> in)
           
 FetchBlobMetadata setContainerName(String container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

retryHandler

protected final BackoffLimitedRetryHandler retryHandler

ablobstore

protected final AsyncBlobStore ablobstore

userExecutor

protected final ExecutorService userExecutor

logger

@Named(value="jclouds.blobstore")
protected Logger logger

maxTime

@Inject(optional=true)
@Named(value="jclouds.request-timeout")
protected Long maxTime
maximum duration of an blob Request

Method Detail

setContainerName

public FetchBlobMetadata setContainerName(String container)

apply

public PageSet<? extends StorageMetadata> apply(PageSet<? extends StorageMetadata> in)
Specified by:
apply in interface com.google.common.base.Function<PageSet<? extends StorageMetadata>,PageSet<? extends StorageMetadata>>


Copyright © 2009-2011 jclouds. All Rights Reserved.