Separate byte-level atomic-storage access 27/111227/20
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Mon, 22 Apr 2024 14:24:04 +0000 (17:24 +0300)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2024 18:46:30 +0000 (20:46 +0200)
commitbc005c333cb76e64b48eac215f7f8b938f7a4142
tree240e82eeb34dc18d37a8e6326b4122cd28bc1f98
parent30ffcf38d4a9f164c54a63d1f0b997250c258ac3
Separate byte-level atomic-storage access

Byte level functionality was moved into *ByteJournal*
artifacts and now can be accessed independently.
SegmentedJournal is now acts as a type serialization
layer on top of ByteJournal.

// FIXME: refactor SegmentedJournal.Builder (in a subsequent patch?)

JIRA: CONTROLLER-2115
Change-Id: I2e4941bda3af76f0cd59e8c545131af85c668010
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 files changed:
atomix-storage/src/main/java/io/atomix/storage/journal/ByteBufJournal.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/ByteBufMapper.java [moved from atomix-storage/src/main/java/io/atomix/storage/journal/CommitsSegmentJournalReader.java with 59% similarity]
atomix-storage/src/main/java/io/atomix/storage/journal/ByteBufReader.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/ByteBufWriter.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/JournalReader.java
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSegmentReader.java
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSegmentWriter.java
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSerdes.java
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSerializer.java [deleted file]
atomix-storage/src/main/java/io/atomix/storage/journal/JournalWriter.java
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedByteBufJournal.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedByteBufReader.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedByteBufWriter.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedCommitsByteBufReader.java [new file with mode: 0644]
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedJournal.java
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedJournalReader.java
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedJournalWriter.java