From d5e86cdd9e41cf63e147c4811cf292fa4e7b58b7 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Tue, 18 Mar 2008 11:24:26 +0000
Subject: [PATCH] - make the entry cache preload backend implementation specific moving EntryCachePreloader to JEB package and reworking it for JEB specific preload.
---
opends/src/server/org/opends/server/api/Backend.java | 25 ++++++++++---------------
1 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/Backend.java b/opends/src/server/org/opends/server/api/Backend.java
index b2a0e17..299fc2f 100644
--- a/opends/src/server/org/opends/server/api/Backend.java
+++ b/opends/src/server/org/opends/server/api/Backend.java
@@ -30,7 +30,6 @@
import java.util.ArrayList;
-import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
@@ -211,21 +210,18 @@
/**
- * Retrieves the set of all DNs that are stored within this backend.
- * Note that this can be a slow operation depending on a particular
- * backend implementation and might be unsupported by some backends.
+ * Attempts to pre-load all the entries stored within this backend
+ * into the entry cache. Note that the caller must ensure that the
+ * backend stays in read-only state until this method returns as
+ * no entry locking is performed during this operation. Also note
+ * that any backend implementing this method should implement pre-
+ * load progress reporting and error handling specific to its own
+ * implementation.
*
- * @param storedDNs Collection to retrieve all stored DNs into.
- * Note that for async operation a thread-safe collection
- * should be used.
- *
- * @return {@code true} if all DNs stored within this backend were
- * successfully retrieved, or {@code false} otherwise.
- *
- * @throws UnsupportedOperationException if backend implementation
- * does not support this operation.
+ * @throws UnsupportedOperationException if backend does not
+ * support this operation.
*/
- public abstract boolean collectStoredDNs(Collection<DN> storedDNs)
+ public abstract void preloadEntryCache()
throws UnsupportedOperationException;
@@ -1309,4 +1305,3 @@
return false;
}
}
-
--
Gitblit v1.10.0