From 4738da898c0e9289f0b1171d7f3023c6c834d82e Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Mon, 22 Oct 2007 21:47:06 +0000
Subject: [PATCH] Added the ability to retrieve the number of entries in the entire subordinate subtree to the numSubordinates method in the backend API. Changed the replication code to use numSubordinates of the entires subtree to determine how many entries will be exported and imported during initialization.

---
 opendj-sdk/opends/src/server/org/opends/server/api/Backend.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/Backend.java b/opendj-sdk/opends/src/server/org/opends/server/api/Backend.java
index a979203..fc26580 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/Backend.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/Backend.java
@@ -433,13 +433,19 @@
    *
    * @param entryDN The distinguished name of the entry.
    *
+   * @param subtree <code>true</code> to include all entries from the
+   *                      requested entry to the lowest level in the
+   *                      tree or <code>false</code> to only include
+   *                      the entries immediately below the requested
+   *                      entry.
+   *
    * @return The number of subordinate entries for the requested entry
    *         or -1 if it can not be determined.
    *
    * @throws DirectoryException  If a problem occurs while trying to
    *                              retrieve the entry.
    */
-  public abstract long numSubordinates(DN entryDN)
+  public abstract long numSubordinates(DN entryDN, boolean subtree)
       throws DirectoryException;
 
 

--
Gitblit v1.10.0