public class ParallelMultipartUploadStrategy extends Object implements AsyncMultipartUploadStrategy
Modifier and Type | Field and Description |
---|---|
protected SwiftBlobStore |
blobstore |
protected Logger |
logger |
protected Long |
maxTime
maximum duration of an blob Request
|
static String |
PART_SEPARATOR |
protected PayloadSlicer |
slicer |
Constructor and Description |
---|
ParallelMultipartUploadStrategy(SwiftBlobStore blobstore,
PayloadSlicer slicer,
com.google.common.util.concurrent.ListeningExecutorService executor) |
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 SwiftBlobStore blobstore
protected final PayloadSlicer slicer
@Inject public ParallelMultipartUploadStrategy(SwiftBlobStore blobstore, PayloadSlicer slicer, @Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService executor)
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-2016 The Apache Software Foundation. All Rights Reserved.