From 157717b205d4c1f957cf810e04e06f11530c619c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 02 Sep 2013 08:57:43 +0000
Subject: [PATCH] Renamed: - ChangeNumber to CSN - ChangeNumberGenerator to CSNGenerator - ChangeNumberTest to CSNTest - ChangeNumberGeneratorTest to CSNGeneratorTest

---
 opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNDB.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNDB.java b/opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNDB.java
index 74ad32f..04e85d9 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNDB.java
@@ -34,7 +34,7 @@
 import org.opends.messages.Message;
 import org.opends.messages.MessageBuilder;
 import org.opends.server.loggers.debug.DebugTracer;
-import org.opends.server.replication.common.ChangeNumber;
+import org.opends.server.replication.common.CSN;
 import org.opends.server.replication.server.changelog.api.ChangelogException;
 import org.opends.server.types.DebugLogLevel;
 
@@ -89,16 +89,16 @@
    *                     with this draftCN.
    * @param domainBaseDN the provided domainBaseDn to be stored associated
    *                     with this draftCN.
-   * @param changeNumber the provided replication change number to be
+   * @param csn the provided replication CSN to be
    *                     stored associated with this draftCN.
    */
   public void addEntry(int draftCN, String value, String domainBaseDN,
-      ChangeNumber changeNumber)
+      CSN csn)
   {
     try
     {
       DatabaseEntry key = new ReplicationDraftCNKey(draftCN);
-      DatabaseEntry data = new DraftCNData(value, domainBaseDN, changeNumber);
+      DatabaseEntry data = new DraftCNData(value, domainBaseDN, csn);
 
       // Use a transaction so that we can override durability.
       Transaction txn = null;
@@ -388,7 +388,7 @@
         {
           if (localCursor.getSearchKey(key, entry, LockMode.DEFAULT) != SUCCESS)
           {
-            // We could not move the cursor to the expected startingChangeNumber
+            // We could not move the cursor to the expected startingDraftCN
             if (localCursor.getSearchKeyRange(key, entry, DEFAULT) != SUCCESS)
             {
               // We could not even move the cursor closed to it => failure
@@ -618,10 +618,10 @@
     }
 
     /**
-     * Returns the replication changeNumber associated with the current key.
-     * @return the replication changeNumber
+     * Returns the replication CSN associated with the current key.
+     * @return the replication CSN
      */
-    public ChangeNumber currentChangeNumber()
+    public CSN currentCSN()
     {
       if (isClosed)
       {
@@ -632,7 +632,7 @@
       {
         if (seqnumData != null)
         {
-          return seqnumData.getChangeNumber();
+          return seqnumData.getCSN();
         }
       }
       catch(Exception e)

--
Gitblit v1.10.0