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

Jean-Noel Rouvignac
12.22.2013 45a8024fe68e7bc451a5a22afcaf31e7edb745a1
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, August 12, 2013 17:22 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, August 12, 2013 17:22 +0200
commit45a8024fe68e7bc451a5a22afcaf31e7edb745a1
tree 4f29c70b582a2b5e55f71f2eaf66b552292cfc4a tree | zip | gz
parent 5bac637fff2ddff2d164e49e4a4bdcdd45efb400 view | diff
OPENDJ-1116 Introduce abstraction for the changelog DB

Hid low level JE's DatabaseException and ReplicationDBException from replication higher level code. They have been replaced by the newly created ChangelogException.

Tidied up the exception handling by throwing or catching more specific exceptions.
Moved some code to protect them with try / catch.
Adding a few catch for specific handling of ChangelogException.
Threw ChangelogException instead of Exception.
Added handleUnexpectedDatabaseException() methods.

ReplicationDBException.java: REMOVED (now useless)

replication*.properties:
Removed ERR_COULD_NOT_INITIALIZE_DB, not adding anything to ERR_COULD_NOT_READ_DB.

Removed "this." from member method invocations.
Used Integer.parseInt().
Used StaticUtils.close().
1 files deleted
2 files added
20 files modified
1122 ■■■■ changed files
opends/src/messages/messages/replication.properties 2 ●●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_de.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_es.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_fr.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_ja.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_ko.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_zh_CN.properties 1 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication_zh_TW.properties 1 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java 41 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DraftCNDB.java 224 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DraftCNData.java 40 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DraftCNDbHandler.java 114 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DraftCNDbIterator.java 18 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ECLServerHandler.java 19 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationBackend.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDB.java 159 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDBException.java 57 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDbEnv.java 240 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationIterator.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 29 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogException.java 77 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/api/package-info.java 44 ●●●●● diff | view | raw | blame | history