From 22632fe3bf532c2b76f99b41b40c188d88464847 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 24 Sep 2013 15:23:11 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB

---
 opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java
index f8bd02d..1bc8fd1 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java
@@ -114,24 +114,26 @@
   long getDomainChangesCount(DN baseDN);
 
   /**
-   * Returns the FIRST {@link CSN}s of each serverId for the specified
+   * Returns the oldest {@link CSN}s of each serverId for the specified
    * replication domain.
    *
    * @param baseDN
    *          the replication domain baseDN
-   * @return a {serverId => FIRST CSN} Map
+   * @return a {serverId => oldest CSN} Map. If a replica DB is empty or closed,
+   *         the oldest CSN will be null for that replica.
    */
-  Map<Integer, CSN> getDomainFirstCSNs(DN baseDN);
+  Map<Integer, CSN> getDomainOldestCSNs(DN baseDN);
 
   /**
-   * Returns the LAST {@link CSN}s of each serverId for the specified
+   * Returns the newest {@link CSN}s of each serverId for the specified
    * replication domain.
    *
    * @param baseDN
    *          the replication domain baseDN
-   * @return a {serverId => LAST CSN} Map
+   * @return a {serverId => newest CSN} Map. If a replica DB is empty or closed,
+   *         the newest CSN will be null for that replica.
    */
-  Map<Integer, CSN> getDomainLastCSNs(DN baseDN);
+  Map<Integer, CSN> getDomainNewestCSNs(DN baseDN);
 
   /**
    * Retrieves the latest trim date for the specified replication domain.

--
Gitblit v1.10.0