Class BaseSlicingStrategy
java.lang.Object
org.jclouds.glacier.blobstore.strategy.internal.BaseSlicingStrategy
- All Implemented Interfaces:
SlicingStrategy
This implementation slice a payload based on the (part size)/(number of parts) ratio. This ratio may be overriden.
-
Field Summary
FieldsFields inherited from interface org.jclouds.glacier.blobstore.strategy.SlicingStrategy
MAX_LIST_MPU_RETURNED, MAX_LIST_PARTS_RETURNED, MAX_NUMBER_OF_PARTS, MAX_PART_SIZE, MIN_PART_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected long
calculatePartSize
(long length) long
long
boolean
hasNext()
void
startSlicing
(Payload payload)
-
Field Details
-
DEFAULT_RATIO
public static final double DEFAULT_RATIO- See Also:
-
-
Constructor Details
-
BaseSlicingStrategy
-
-
Method Details
-
calculatePartSize
protected long calculatePartSize(long length) -
getRemaining
public long getRemaining() -
startSlicing
- Specified by:
startSlicing
in interfaceSlicingStrategy
-
nextSlice
- Specified by:
nextSlice
in interfaceSlicingStrategy
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceSlicingStrategy
-
getPartSizeInMB
public long getPartSizeInMB()- Specified by:
getPartSizeInMB
in interfaceSlicingStrategy
-