-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable,jetbrains.exodus.io.DataWriter,jetbrains.exodus.log.replication.S3DataReaderOrWriter,jetbrains.exodus.log.replication.S3FactoryBoilerplate
public final class S3DataWriter extends AbstractDataWriter implements S3DataReaderOrWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classS3DataWriter.Companion
-
Field Summary
Fields Modifier and Type Field Description private final LogTiplogTipprivate final S3AsyncClients3private final Stringbucketprivate final AwsRequestOverrideConfigurationrequestOverrideConfig
-
Constructor Summary
Constructors Constructor Description S3DataWriter(S3Client s3Sync, S3AsyncClient s3, String bucket, AwsRequestOverrideConfiguration requestOverrideConfig, Log log)
-
Method Summary
Modifier and Type Method Description LogTipgetLogTip()S3AsyncClientgetS3()StringgetBucket()AwsRequestOverrideConfigurationgetRequestOverrideConfig()Blockwrite(ByteArray bytes, Integer off, Integer len)UnitremoveBlock(Long blockAddress, RemoveBlockType rbt)UnittruncateBlock(Long blockAddress, Long length)Booleanlock(Long timeout)Booleanrelease()StringlockInfo()-
Methods inherited from class jetbrains.exodus.log.replication.S3DataReaderOrWriter
checkPreconditions, getRemoteFile -
Methods inherited from class jetbrains.exodus.log.replication.S3DataWriter
clear, close, isOpen, openOrCreateBlock, sync, syncDirectory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
S3DataWriter
S3DataWriter(S3Client s3Sync, S3AsyncClient s3, String bucket, AwsRequestOverrideConfiguration requestOverrideConfig, Log log)
-
-
Method Detail
-
getLogTip
LogTip getLogTip()
-
getS3
S3AsyncClient getS3()
-
getRequestOverrideConfig
AwsRequestOverrideConfiguration getRequestOverrideConfig()
-
removeBlock
Unit removeBlock(Long blockAddress, RemoveBlockType rbt)
-
truncateBlock
Unit truncateBlock(Long blockAddress, Long length)
-
-
-
-