From 11859d9a6e466bab4ab73e1e46d092c6052acf68 Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 02 Feb 2007 21:50:10 +0000
Subject: [PATCH] These changes are for issue 787: LDAP server need to detect failure of changelog servers
---
opendj-sdk/opends/src/server/org/opends/server/synchronization/protocol/ProtocolSession.java | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/protocol/ProtocolSession.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/protocol/ProtocolSession.java
index 7da612d..947243c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/protocol/ProtocolSession.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/protocol/ProtocolSession.java
@@ -43,8 +43,7 @@
/**
* This method is called when the session with the remote must be closed.
- * It must
- * This object won't be used anymore after this method is called.
+ * This object won't be used anymore after this method is called.
*
* @throws IOException If an error happen during the close process.
*/
@@ -103,4 +102,22 @@
* such as a TCP error.
*/
public abstract void setSoTimeout(int timeout) throws SocketException;
+
+
+
+ /**
+ * Gets the time the last synchronization message was published on this
+ * session.
+ * @return The timestamp in milliseconds of the last message published.
+ */
+ public abstract long getLastPublishTime();
+
+
+
+ /**
+ * Gets the time the last synchronization message was received on this
+ * session.
+ * @return The timestamp in milliseconds of the last message received.
+ */
+ public abstract long getLastReceiveTime();
}
--
Gitblit v1.10.0