From 4f567bc323d14f10807e50d152acbb25cb5493ad Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 04 Sep 2013 07:16:14 +0000
Subject: [PATCH] Renamed: - ChangelogDB to ChangeNumberIndexDB - ChangelogDBIterator to ChangeNumberIndexDBCursor
---
opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
similarity index 84%
rename from opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java
rename to opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
index 6213b28..8c4b4d6 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
@@ -29,13 +29,18 @@
import org.opends.server.replication.common.CSN;
/**
- * This class stores the changelog information into a database.
+ * This class stores an index of all the changes seen by this server. The index
+ * is sorted by a global ordering as defined in the CSN class. The index links a
+ * <code>changeNumber</code> to the corresponding {@link CSN}. The {@link CSN}
+ * then links to a corresponding change in one of the {@link ReplicaDB}s.
*
* @see <a href=
* "https://wikis.forgerock.org/confluence/display/OPENDJ/OpenDJ+Domain+Names"
* >OpenDJ Domain Names</a> for more information about the changelog.
+ * @see <a href= "http://tools.ietf.org/html/draft-good-ldap-changelog-04"
+ * >OpenDJ Domain Names</a> for more information about the changeNumber.
*/
-public interface ChangelogDB extends Runnable
+public interface ChangeNumberIndexDB extends Runnable
{
/**
@@ -98,9 +103,9 @@
void add(int draftCN, String previousCookie, String baseDN, CSN csn);
/**
- * Generate a new {@link ChangelogDBIterator} that allows to browse the db
- * managed by this dbHandler and starting at the position defined by a given
- * changeNumber.
+ * Generate a new {@link ChangeNumberIndexDBCursor} that allows to browse the
+ * db managed by this dbHandler and starting at the position defined by a
+ * given changeNumber.
*
* @param startDraftCN
* The position where the iterator must start.
@@ -110,7 +115,7 @@
* @throws ChangelogException
* if a database problem happened.
*/
- ChangelogDBIterator generateIterator(int startDraftCN)
+ ChangeNumberIndexDBCursor getCursorFrom(int startDraftCN)
throws ChangelogException;
/**
--
Gitblit v1.10.0