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/plugin/FakeDelOperation.java | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java b/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
index 56fc27f..0e9d604 100644
--- a/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
+++ b/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
@@ -23,39 +23,36 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2012 ForgeRock AS.
+ * Portions copyright 2012-2013 ForgeRock AS
*/
package org.opends.server.replication.plugin;
-import org.opends.server.replication.common.ChangeNumber;
+import org.opends.server.replication.common.CSN;
import org.opends.server.replication.protocol.DeleteMsg;
import org.opends.server.replication.protocol.ReplicationMsg;
/**
- *
* This class if used to build pseudo DEL Operation from the historical
* information that stay in the entry in the database.
*
* This is useful when a LDAP server can't find a LDAP server that
* has already seen all its changes and therefore need to retransmit them.
- *
*/
public class FakeDelOperation extends FakeOperation
{
- final private String dn;
+ private final String dn;
private final String entryUUID;
/**
* Creates a new FakeDelOperation from the provided information.
*
* @param dn The dn of the entry that was deleted.
- * @param changeNumber The ChangeNumber of the operation.
+ * @param csn The CSN of the operation.
* @param entryUUID The Unique ID of the deleted entry.
*/
- public FakeDelOperation(String dn, ChangeNumber changeNumber,
- String entryUUID)
+ public FakeDelOperation(String dn, CSN csn, String entryUUID)
{
- super(changeNumber);
+ super(csn);
this.dn = dn;
this.entryUUID = entryUUID;
}
@@ -67,7 +64,7 @@
@Override
public ReplicationMsg generateMessage()
{
- return new DeleteMsg(dn, this.getChangeNumber(), entryUUID);
+ return new DeleteMsg(dn, getCSN(), entryUUID);
}
/**
--
Gitblit v1.10.0