org.jclouds.aws.s3.blobstore.strategy.internal
Class SequentialMultipartUploadStrategy

java.lang.Object
  extended by org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy
All Implemented Interfaces:
MultipartUpload, MultipartUploadStrategy

public class SequentialMultipartUploadStrategy
extends Object
implements MultipartUploadStrategy

Provides a sequential multipart upload strategy. The file partitioning algorithm: The default partition size we choose is 32mb. A multiple of this default partition size is used. The number of partCount first grows to a chosen magnitude (for example 100 partCount), then it grows the partition size instead of number of partitions. When we reached the maximum part size, then again it starts to grow the number of partitions.


Field Summary
 
Fields inherited from interface org.jclouds.aws.s3.blobstore.strategy.MultipartUpload
MAX_LIST_MPU_RETURNED, MAX_LIST_PARTS_RETURNED, MAX_NUMBER_OF_PARTS, MAX_PART_SIZE, MIN_PART_SIZE
 
Constructor Summary
SequentialMultipartUploadStrategy(AWSS3Client client, org.jclouds.s3.blobstore.functions.BlobToObject blobToObject, MultipartUploadSlicingAlgorithm algorithm, org.jclouds.io.PayloadSlicer slicer)
           
 
Method Summary
 String execute(String container, org.jclouds.blobstore.domain.Blob blob)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialMultipartUploadStrategy

@Inject
public SequentialMultipartUploadStrategy(AWSS3Client client,
                                                org.jclouds.s3.blobstore.functions.BlobToObject blobToObject,
                                                MultipartUploadSlicingAlgorithm algorithm,
                                                org.jclouds.io.PayloadSlicer slicer)
Method Detail

execute

public String execute(String container,
                      org.jclouds.blobstore.domain.Blob blob)
Specified by:
execute in interface MultipartUploadStrategy


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.