public class ParallelMultipartUploadStrategy extends Object implements AsyncMultipartUploadStrategy
Modifier and Type | Field and Description |
---|---|
protected SwiftAsyncBlobStore |
ablobstore |
protected Logger |
logger |
protected Long |
maxTime
maximum duration of an blob Request
|
static String |
PART_SEPARATOR |
protected PayloadSlicer |
slicer |
Constructor and Description |
---|
ParallelMultipartUploadStrategy(SwiftAsyncBlobStore 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,
BlobToObject blob2Object) |
protected void |
prepareUploadPart(String container,
Blob blob,
String key,
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.openstack.swift.blobstore.strategy.internal.ParallelMultipartUploadStrategy.Part> toRetry,
CountDownLatch latch,
BlobToObject blob2Object) |
@Named(value="jclouds.blobstore") protected Logger logger
public static final String PART_SEPARATOR
@Inject(optional=true) @Named(value="jclouds.request-timeout") protected Long maxTime
protected final SwiftAsyncBlobStore ablobstore
protected final PayloadSlicer slicer
@Inject public ParallelMultipartUploadStrategy(SwiftAsyncBlobStore ablobstore, PayloadSlicer slicer, @Named(value="jclouds.io-worker-threads") com.google.common.util.concurrent.ListeningExecutorService ioExecutor)
protected void prepareUploadPart(String container, Blob blob, String key, 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.openstack.swift.blobstore.strategy.internal.ParallelMultipartUploadStrategy.Part> toRetry, CountDownLatch latch, BlobToObject blob2Object)
public com.google.common.util.concurrent.ListenableFuture<String> execute(String container, Blob blob, PutOptions options, BlobToObject blob2Object)
execute
in interface AsyncMultipartUploadStrategy
Copyright © 2009-2013 jclouds. All Rights Reserved.