From be4d4d9909a3461fa0211e259d0d08dcd49cb221 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
---
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
index 1501e73..83ae7c7 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
@@ -31,10 +31,9 @@
import java.util.Set;
import org.opends.server.core.DirectoryServer;
-import org.opends.server.replication.common.ChangeNumber;
+import org.opends.server.replication.common.CSN;
import org.opends.server.types.*;
-
/**
* This class stores an internal usable representation of the value of
* the historical related to an entry.
@@ -59,7 +58,7 @@
*
* so after split
* token[0] will contain the attribute name
- * token[1] will contain the change number
+ * token[1] will contain the CSN
* token[2] will contain the type of historical information
* token[3] will contain the attribute value
*
@@ -72,8 +71,8 @@
private AttributeType attrType;
private String attrString;
private AttributeValue attributeValue;
- private ChangeNumber cn;
- private LinkedHashSet<String> options;
+ private CSN csn;
+ private Set<String> options;
private HistAttrModificationKey histKey;
private String stringValue;
@@ -129,7 +128,7 @@
}
}
- cn = new ChangeNumber(token[1]);
+ csn = new CSN(token[1]);
histKey = HistAttrModificationKey.decodeKey(token[2]);
stringValue = null;
if (histKey != HistAttrModificationKey.DELATTR)
@@ -171,12 +170,12 @@
}
/**
- * Get the ChangeNUmber of this HistVal.
- * @return Returns the ChangeNumber of this HistVal.
+ * Get the CSN of this HistVal.
+ * @return Returns the CSN of this HistVal.
*/
- public ChangeNumber getCn()
+ public CSN getCSN()
{
- return cn;
+ return csn;
}
/**
--
Gitblit v1.10.0