Class MultipartUploadSlicingAlgorithm
- java.lang.Object
-
- org.jclouds.blobstore.strategy.internal.MultipartUploadSlicingAlgorithm
-
public final class MultipartUploadSlicingAlgorithm extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_PART_SIZE
protected Logger
logger
-
Constructor Summary
Constructors Constructor Description MultipartUploadSlicingAlgorithm(long minimumPartSize, long maximumPartSize, int maximumNumberOfParts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCopied(long copied)
long
calculateChunkSize(long length)
protected long
getChunkSize()
long
getCopied()
protected long
getNextChunkOffset()
protected int
getNextPart()
int
getParts()
long
getRemaining()
void
setCopied(long copied)
-
-
-
Field Detail
-
logger
@Named("jclouds.blobstore") protected Logger logger
-
DEFAULT_PART_SIZE
public static final long DEFAULT_PART_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
calculateChunkSize
public long calculateChunkSize(long length)
-
getCopied
public long getCopied()
-
setCopied
public void setCopied(long copied)
-
getParts
public int getParts()
-
getNextPart
protected int getNextPart()
-
addCopied
public void addCopied(long copied)
-
getNextChunkOffset
protected long getNextChunkOffset()
-
getChunkSize
protected long getChunkSize()
-
getRemaining
public long getRemaining()
-
-