Class DriverGoogleProperties

java.lang.Object
io.clonecloudstore.driver.google.DriverGoogleProperties

@ApplicationScoped public class DriverGoogleProperties extends Object
Configurable values for Google
  • Field Details

    • SHA_256

      public static final String SHA_256
      See Also:
    • CLIENT_ID

      public static final String CLIENT_ID
      See Also:
    • EXPIRY

      public static final String EXPIRY
      See Also:
    • MAX_ITEMS

      public static final int MAX_ITEMS
      See Also:
    • DEFAULT_MIN_PART_SIZE

      public static final int DEFAULT_MIN_PART_SIZE
      See Also:
    • DEFAULT_SIZE_NOT_PART

      public static final long DEFAULT_SIZE_NOT_PART
      See Also:
    • DEFAULT_MAX_SIZE_NOT_PART

      public static final long DEFAULT_MAX_SIZE_NOT_PART
      See Also:
    • DEFAULT_PART_SIZE_INT

      public static final int DEFAULT_PART_SIZE_INT
      See Also:
    • DEFAULT_MAX_PART_SIZE_INT

      public static final int DEFAULT_MAX_PART_SIZE_INT
      See Also:
    • CCS_DRIVER_GOOGLE_DISABLE_GZIP

      public static final String CCS_DRIVER_GOOGLE_DISABLE_GZIP
      Default is to use Gzip content, but may be disabled (default: true so disabled)
      See Also:
    • CCS_DRIVER_GOOGLE_MAX_PART_SIZE

      public static final String CCS_DRIVER_GOOGLE_MAX_PART_SIZE
      MultiPart size (minimum 5 MB, maximum 5 GB, default 256 MB)
      See Also:
    • CCS_DRIVER_GOOGLE_MAX_BUF_SIZE

      public static final String CCS_DRIVER_GOOGLE_MAX_BUF_SIZE
      Buffer size (minimum 5 MB, maximum 512 MB, not related with Max Part Size of ~2 GB): will be used to decide which method to use (no memory impact)
      See Also:
  • Constructor Details

  • Method Details

    • isGoogleDisableGzip

      public static boolean isGoogleDisableGzip()
      Default is to use Gzip content, but may be disabled (default: true so disabled)
    • getMaxPartSize

      public static long getMaxPartSize()
      MultiPart size (minimum 5 MB, maximum 5 GB, default 256 MB)
    • getMaxBufSize

      public static int getMaxBufSize()
      Buffer size (minimum 5 MB, maximum 512 MB, not related with Max Part Size of ~2 GB): will be used to buffer InputStream if length is unknown, so take care of the Memory consumption associated (128 MB, default)
    • setDynamicPartSize

      public static void setDynamicPartSize(long size)
      Used to change dynamically the setup
    • setDynamicBufSize

      public static void setDynamicBufSize(int size)
      Used to change dynamically the setup
    • setDynamicDisableGzip

      public static void setDynamicDisableGzip(boolean disable)
      Used to change dynamically the setup