Class EssUploadConfig

java.lang.Object
com.appliedolap.essbase.EssUploadConfig

public final class EssUploadConfig extends Object
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 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

      public String toString()
      Overrides:
      toString in class Object