org.jclouds.aws.s3.blobstore.strategy.internal
Class ParallelMultipartUploadStrategy
java.lang.Object
org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy
- All Implemented Interfaces:
- AsyncMultipartUploadStrategy, MultipartUpload
public class ParallelMultipartUploadStrategy
- extends Object
- implements AsyncMultipartUploadStrategy
Method Summary |
com.google.common.util.concurrent.ListenableFuture<String> |
execute(String container,
Blob blob)
|
protected void |
prepareUploadPart(String container,
String key,
String uploadId,
Integer part,
Payload payload,
long offset,
long size,
SortedMap<Integer,String> etags,
BlockingQueue<Integer> activeParts,
Map<Integer,com.google.common.util.concurrent.ListenableFuture<String>> futureParts,
AtomicInteger errors,
int maxRetries,
Map<Integer,Exception> errorMap,
Queue<org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.Part> toRetry,
CountDownLatch latch)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ablobstore
protected final AWSS3AsyncBlobStore ablobstore
slicer
protected final PayloadSlicer slicer
ParallelMultipartUploadStrategy
@Inject
public ParallelMultipartUploadStrategy(AWSS3AsyncBlobStore ablobstore,
PayloadSlicer slicer,
@Named(value="jclouds.io-worker-threads")
ExecutorService ioWorkerExecutor)
prepareUploadPart
protected void prepareUploadPart(String container,
String key,
String uploadId,
Integer part,
Payload payload,
long offset,
long size,
SortedMap<Integer,String> etags,
BlockingQueue<Integer> activeParts,
Map<Integer,com.google.common.util.concurrent.ListenableFuture<String>> futureParts,
AtomicInteger errors,
int maxRetries,
Map<Integer,Exception> errorMap,
Queue<org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.Part> toRetry,
CountDownLatch latch)
execute
public com.google.common.util.concurrent.ListenableFuture<String> execute(String container,
Blob blob)
- Specified by:
execute
in interface AsyncMultipartUploadStrategy
Copyright © 2009-2011 jclouds. All Rights Reserved.