mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
12.08.2014 3c931b0f1ba72ce655f1fe03295aff77b4bfcf38
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Thursday, June 12, 2014 17:08 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Thursday, June 12, 2014 17:08 +0200
commit3c931b0f1ba72ce655f1fe03295aff77b4bfcf38
tree e8ed7fd1a4d966079d7306cc6f4ee9dbf16c01ce tree | zip | gz
parent 1c07d2405e57b4fbff3a57720179f1e229d6696a view | diff
OPENDJ-1472 : File based changelog : optimize random seek in each log file
CR-3727

Implements read and write with blocks, to enable binary search.

* New BlockLogReader class: read records sequentially or using
binary search provided a key

* New BlockLogWriter class: write records by blocks

* New BlockLogReaderWriterTest class : tests read/write with blocks

* Update LogFile : delegate responsibility for read/write to BlockLogXXX

* Add method ByteStringBuilder#append(DataInput, int) to avoid
byte array copy

* Minor changes in other files
3 files added
8 files modified
1538 ■■■■ changed files
opends/src/messages/messages/replication.properties 4 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/BlockLogReader.java 536 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/BlockLogWriter.java 214 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/Log.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/LogFile.java 155 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/LogReaderPool.java 27 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/LogWriter.java 10 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/types/ByteStringBuilder.java 31 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 32 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/file/BlockLogReaderWriterTest.java 490 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/file/LogFileTest.java 37 ●●●●● diff | view | raw | blame | history