From 020a870af63f7407d3145feb74351bee3c2ce837 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 17 Dec 2013 11:08:12 +0000
Subject: [PATCH] OPENDJ-1231 (CR-2724) Make the Medium Consistency Point support replica heartbeats and replicas shutting down
---
opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java b/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java
index ed3b7db..7fe4069 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java
@@ -47,8 +47,8 @@
long getDomainChangesCount(DN baseDN);
/**
- * Returns the oldest {@link CSN}s of each serverId for the specified
- * replication domain.
+ * Returns the oldest {@link CSN}s from the replicaDBs for each serverId in
+ * the specified replication domain.
*
* @param baseDN
* the replication domain baseDN
@@ -59,8 +59,8 @@
ServerState getDomainOldestCSNs(DN baseDN);
/**
- * Returns the newest {@link CSN}s of each serverId for the specified
- * replication domain.
+ * Returns the newest {@link CSN}s from the replicaDBs for each serverId in
+ * the specified replication domain.
*
* @param baseDN
* the replication domain baseDN
@@ -71,6 +71,18 @@
ServerState getDomainNewestCSNs(DN baseDN);
/**
+ * Returns the last time each serverId was seen alive for the specified
+ * replication domain.
+ *
+ * @param baseDN
+ * the replication domain baseDN
+ * @return a new ServerState object holding the {serverId => CSN} Map. Can be
+ * null if the config that computes change numbers is set to false or
+ * if domain is not replicated.
+ */
+ ServerState getDomainLastAliveCSNs(DN baseDN);
+
+ /**
* Retrieves the latest trim date for the specified replication domain.
* <p>
* FIXME will be removed when ECLServerHandler will not be responsible anymore
--
Gitblit v1.10.0