Package io.clonecloudstore.driver.google
Class DriverGoogleProperties
java.lang.Object
io.clonecloudstore.driver.google.DriverGoogleProperties
Configurable values for Google
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault is to use Gzip content, but may be disabled (default: true so disabled)static final StringBuffer 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)static final StringMultiPart size (minimum 5 MB, maximum 5 GB, default 256 MB)static final Stringstatic final intstatic final longstatic final intstatic final intstatic final longstatic final Stringstatic final intstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intBuffer 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)static longMultiPart size (minimum 5 MB, maximum 5 GB, default 256 MB)static booleanDefault is to use Gzip content, but may be disabled (default: true so disabled)static voidsetDynamicBufSize(int size) Used to change dynamically the setupstatic voidsetDynamicDisableGzip(boolean disable) Used to change dynamically the setupstatic voidsetDynamicPartSize(long size) Used to change dynamically the setup
-
Field Details
-
SHA_256
- See Also:
-
CLIENT_ID
- See Also:
-
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
Default is to use Gzip content, but may be disabled (default: true so disabled)- See Also:
-
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
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
-
DriverGoogleProperties
-
-
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
-