public class ParallelMultipartUploadStrategy extends Object implements AsyncMultipartUploadStrategy
Modifier and Type | Field and Description |
---|---|
protected AWSS3AsyncBlobStore |
ablobstore |
protected Logger |
logger |
protected Long |
maxTime
maximum duration of an blob Request
|
protected PayloadSlicer |
slicer |
MAX_LIST_MPU_RETURNED, MAX_LIST_PARTS_RETURNED, MAX_NUMBER_OF_PARTS, MAX_PART_SIZE, MIN_PART_SIZE
Constructor and Description |
---|
ParallelMultipartUploadStrategy(AWSS3AsyncBlobStore ablobstore,
PayloadSlicer slicer,
com.google.common.util.concurrent.ListeningExecutorService ioExecutor) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<String> |
execute(String container,
Blob blob,
PutOptions options) |
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) |
@Named(value="jclouds.blobstore") protected Logger logger
@Inject(optional=true) @Named(value="jclouds.request-timeout") protected Long maxTime
protected final AWSS3AsyncBlobStore ablobstore
protected final PayloadSlicer slicer
@Inject public ParallelMultipartUploadStrategy(AWSS3AsyncBlobStore ablobstore, PayloadSlicer slicer, @Named(value="jclouds.io-worker-threads") com.google.common.util.concurrent.ListeningExecutorService ioExecutor)
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)
public com.google.common.util.concurrent.ListenableFuture<String> execute(String container, Blob blob, PutOptions options)
execute
in interface AsyncMultipartUploadStrategy
Copyright © 2009-2013 jclouds. All Rights Reserved.