Package com.appliedolap.essbase
Class EssUploadConfig
java.lang.Object
com.appliedolap.essbase.EssUploadConfig
How the server wants large files uploaded.
Published by the server rather than guessed at, which matters because the answer decides whether a file can go up in one request at all: past the part size there is a three-call protocol to follow instead.
-
Constructor Summary
ConstructorsConstructorDescriptionEssUploadConfig(int partSizeMegabytes, int maxParts, int retryCount, long maxFileSizeBytes) -
Method Summary
Modifier and TypeMethodDescriptionlongThe largest file the server will take, or -1 where it sets no limit.intHow many parts one upload may have.longThe size in bytes, which is what anything measuring a file actually needs.intHow big each part should be, in megabytes - ten, on the servers seen so far.intbooleanneedsParts(long fileSizeBytes) Whether a file of this size has to be sent in parts.toString()
-
Constructor Details
-
EssUploadConfig
public EssUploadConfig(int partSizeMegabytes, int maxParts, int retryCount, long maxFileSizeBytes)
-
-
Method Details
-
getPartSizeMegabytes
public int getPartSizeMegabytes()How big each part should be, in megabytes - ten, on the servers seen so far. -
getPartSizeBytes
public long getPartSizeBytes()The size in bytes, which is what anything measuring a file actually needs. -
getMaxParts
public int getMaxParts()How many parts one upload may have. Ten thousand parts of ten megabytes is a hundred gigabytes. -
getRetryCount
public int getRetryCount() -
getMaxFileSizeBytes
public long getMaxFileSizeBytes()The largest file the server will take, or -1 where it sets no limit. -
needsParts
public boolean needsParts(long fileSizeBytes) Whether a file of this size has to be sent in parts. -
toString
-