From f312ec4a15ca08a406c045748e9d627fe1e31494 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 17 Nov 2006 13:46:39 +0000
Subject: [PATCH] The synchronization changelog monitoring information has a counter named waiting-changes that publish the number of updates known by the changelog server that have not yest been sent to each ldap server because they are too slow to replay them.

---
 opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
index e5d741f..a0b8346 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
@@ -31,6 +31,7 @@
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Set;
 import java.util.zip.DataFormatException;
@@ -44,7 +45,7 @@
  * from each server.
  * It is exchanged with the changelog servers at connection establishment time.
  */
-public class ServerState
+public class ServerState implements Iterable<Short>
 {
   private HashMap<Short, ChangeNumber> list;
 
@@ -281,4 +282,12 @@
       return result;
     }
   }
+
+  /**
+   * {@inheritDoc}
+   */
+  public Iterator<Short> iterator()
+  {
+    return list.keySet().iterator();
+  }
 }

--
Gitblit v1.10.0