From 87b6a9294f437fd6312c2fbe2292ee64babd8d7e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 10 Oct 2013 14:45:51 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB
---
opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
index f578665..5df4c1bb 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java
@@ -29,10 +29,10 @@
/**
* This class stores an index of all the changes seen by this server in the form
- * of {@link CNIndexRecord}s. The records are sorted by a global ordering as
- * defined in the CSN class. The index links a <code>changeNumber</code> to the
- * corresponding CSN. The CSN then links to a corresponding change in one of the
- * ReplicaDBs.
+ * of {@link ChangeNumberIndexRecord}s. The records are sorted by a global
+ * ordering as defined in the CSN class. The index links a
+ * <code>changeNumber</code> to the corresponding CSN. The CSN then links to a
+ * corresponding change in one of the ReplicaDBs.
*
* @see <a href=
* "https://wikis.forgerock.org/confluence/display/OPENDJ/OpenDJ+Domain+Names"
@@ -53,22 +53,22 @@
/**
* Get the oldest record stored in this DB.
*
- * @return Returns the oldest {@link CNIndexRecord} in this DB, null when the
- * DB is empty or closed
+ * @return Returns the oldest {@link ChangeNumberIndexRecord} in this DB, null
+ * when the DB is empty or closed
* @throws ChangelogException
* if a database problem occurs.
*/
- CNIndexRecord getOldestRecord() throws ChangelogException;
+ ChangeNumberIndexRecord getOldestRecord() throws ChangelogException;
/**
* Get the newest record stored in this DB.
*
- * @return Returns the newest {@link CNIndexRecord} in this DB, null when the
- * DB is empty or closed
+ * @return Returns the newest {@link ChangeNumberIndexRecord} in this DB, null
+ * when the DB is empty or closed
* @throws ChangelogException
* if a database problem occurs.
*/
- CNIndexRecord getNewestRecord() throws ChangelogException;
+ ChangeNumberIndexRecord getNewestRecord() throws ChangelogException;
/**
* Add an update to the list of messages that must be saved to this DB managed
@@ -80,12 +80,12 @@
* for lazily building the ChangeNumberIndexDB.
*
* @param record
- * The {@link CNIndexRecord} to add to this DB.
+ * The {@link ChangeNumberIndexRecord} to add to this DB.
* @return the change number associated to this record on adding to this DB
* @throws ChangelogException
* if a database problem occurs.
*/
- long addRecord(CNIndexRecord record) throws ChangelogException;
+ long addRecord(ChangeNumberIndexRecord record) throws ChangelogException;
/**
* Generate a new {@link DBCursor} that allows to browse the db managed by
@@ -99,7 +99,7 @@
* @throws ChangelogException
* if a database problem occurs.
*/
- DBCursor<CNIndexRecord> getCursorFrom(long startChangeNumber)
+ DBCursor<ChangeNumberIndexRecord> getCursorFrom(long startChangeNumber)
throws ChangelogException;
}
--
Gitblit v1.10.0