Class S3AccessProvider
java.lang.Object
ch.tocco.nice2.persist.core.spi.binary.AbstractBinaryAccessProvider
ch.tocco.nice2.persist.s3storage.impl.S3AccessProvider
- All Implemented Interfaces:
BinaryAccessProvider
A binary storage strategy which uses an S3 compatible storage server
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.spi.binary.AbstractBinaryAccessProvider
AbstractBinaryAccessProvider.SqlFunction<T>
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.spi.binary.AbstractBinaryAccessProvider
binaryHashingService, log
-
Constructor Summary
ConstructorDescriptionS3AccessProvider
(org.slf4j.Logger log, BinaryHashingService binaryHashingService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureSqlBuilder
(SqlBuilder.InsertSqlBuilder sqlBuilder) protected Binary.Store
createBinaryStore
(String hash) void
boolean
doesObjectExist
(String objectName) protected software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
protected void
handleBinaryData
(Binary binary, PreparedStatement statement, int index) void
setAccessKeyId
(String accessKeyId) void
setBucketName
(String bucketName) void
setEndpoint
(String endpoint) void
setSecretAccessKey
(String secretAccessKey) Methods inherited from class ch.tocco.nice2.persist.core.spi.binary.AbstractBinaryAccessProvider
createStatementToLoadBinary, doWithSingleResult, findUnreferencedBinaries, loadBinary, loadBinary, removeBinary, removeBinarySearchText, storeBinary
-
Field Details
-
s3client
protected software.amazon.awssdk.services.s3.S3Client s3client
-
-
Constructor Details
-
S3AccessProvider
-
-
Method Details
-
createClient
public void createClient() -
getCredentials
protected software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getCredentials() -
createBinaryStore
- Specified by:
createBinaryStore
in classAbstractBinaryAccessProvider
-
configureSqlBuilder
- Specified by:
configureSqlBuilder
in classAbstractBinaryAccessProvider
-
handleBinaryData
- Specified by:
handleBinaryData
in classAbstractBinaryAccessProvider
-
doesObjectExist
-
setAccessKeyId
-
setSecretAccessKey
-
setBucketName
-
setEndpoint
-