From 8f75a9918071b92a1320d08b6d75e69c1d8bd217 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 20 Feb 2009 08:44:40 +0000
Subject: [PATCH] Fix for 3804 : improve replication monitoring
---
opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java b/opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java
index 9c7f7ae..dee8335 100644
--- a/opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java
+++ b/opends/src/server/org/opends/server/replication/plugin/RemotePendingChanges.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2007-2008 Sun Microsystems, Inc.
+ * Copyright 2007-2009 Sun Microsystems, Inc.
*/
package org.opends.server.replication.plugin;
@@ -91,6 +91,16 @@
}
/**
+ * Returns the number of changes currently in this list.
+ *
+ * @return The number of changes currently in this list.
+ */
+ public synchronized int getQueueSize()
+ {
+ return pendingChanges.size();
+ }
+
+ /**
* Add a new LDAPUpdateMsg that was received from the replication server
* to the pendingList.
*
--
Gitblit v1.10.0