From b1ae3d652cc31c837721fd750623cec531b94d93 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 04 Sep 2013 10:57:18 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB
---
opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDB.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 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 54d7639..57faad5 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
@@ -40,7 +40,7 @@
* @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 ChangeNumberIndexDB extends Runnable
+public interface ChangeNumberIndexDB
{
/**
@@ -50,7 +50,7 @@
* the provided change number.
* @return the associated CSN, null when none.
*/
- public CSN getCSN(int changeNumber);
+ public CSN getCSN(long changeNumber);
/**
* Get the baseDN associated to a provided change number.
@@ -59,7 +59,7 @@
* the provided change number.
* @return the baseDN, null when none.
*/
- public String getBaseDN(int changeNumber);
+ public String getBaseDN(long changeNumber);
/**
* Get the previous cookie associated to a provided change number.
@@ -68,21 +68,21 @@
* the provided change number.
* @return the previous cookie, null when none.
*/
- String getPreviousCookie(int changeNumber);
+ String getPreviousCookie(long changeNumber);
/**
* Get the first change number stored in this DB.
*
* @return Returns the first change number in this DB.
*/
- int getFirstChangeNumber();
+ long getFirstChangeNumber();
/**
* Get the last change number stored in this DB.
*
* @return Returns the last change number in this DB
*/
- int getLastChangeNumber();
+ long getLastChangeNumber();
/**
* Add an update to the list of messages that must be saved to this DB managed
@@ -100,7 +100,7 @@
* @param csn
* The associated replication CSN.
*/
- void add(int changeNumber, String previousCookie, String baseDN, CSN csn);
+ void add(long changeNumber, String previousCookie, String baseDN, CSN csn);
/**
* Generate a new {@link ChangeNumberIndexDBCursor} that allows to browse the
@@ -115,7 +115,7 @@
* @throws ChangelogException
* if a database problem happened.
*/
- ChangeNumberIndexDBCursor getCursorFrom(int startChangeNumber)
+ ChangeNumberIndexDBCursor getCursorFrom(long startChangeNumber)
throws ChangelogException;
/**
--
Gitblit v1.10.0