- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getMultipartThreshold (0.33 sec)
-
platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ClientTest.groovy
def setup(){ _ * s3ConnectionProperties.getEndpoint() >> Optional.absent() _ * s3ConnectionProperties.getPartSize() >> 512 _ * s3ConnectionProperties.getMultipartThreshold() >> 1024 } def "Should upload to s3"() { given: AmazonS3Client amazonS3Client = Mock() S3Client client = new S3Client(amazonS3Client, s3ConnectionProperties)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 10.3K bytes - Viewed (0) -
platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3ConnectionProperties.java
} public Optional<Integer> getMaxErrorRetryCount() { return maxErrorRetryCount; } public long getPartSize() { return partSize; } public long getMultipartThreshold() { return partSize * 2; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 4.6K bytes - Viewed (0) -
platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3Client.java
} return clientConfiguration; } public void put(InputStream inputStream, Long contentLength, URI destination) { if (contentLength < s3ConnectionProperties.getMultipartThreshold()) { putSingleObject(inputStream, contentLength, destination); } else { putMultiPartObject(inputStream, contentLength, destination); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 11.7K bytes - Viewed (0) -
platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/S3ClientIntegrationTest.groovy
getEndpoint() >> Optional.of(server.uri) getProxy() >> Optional.fromNullable(null) getMaxErrorRetryCount() >> Optional.absent() getPartSize() >> 512 getMultipartThreshold() >> 1024 } S3Client s3Client = new S3Client(authenticationImpl, s3SystemProperties) when: def stream = new FileInputStream(file)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 9.8K bytes - Viewed (0)