From 97050c54efee9d0cc89afb5fb61b9a1c67f73f6a Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 16 Nov 2016 19:28:22 +0000
Subject: [PATCH] OPENDJ-3460 Improve management of subordinate backend and naming contexts

---
 opendj-server-legacy/src/main/java/org/opends/server/api/EntryCache.java |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/EntryCache.java b/opendj-server-legacy/src/main/java/org/opends/server/api/EntryCache.java
index 1bff547..fb2ed6d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/EntryCache.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/EntryCache.java
@@ -25,6 +25,7 @@
 import org.forgerock.i18n.slf4j.LocalizedLogger;
 import org.forgerock.opendj.config.server.ConfigException;
 import org.forgerock.opendj.server.config.server.EntryCacheCfg;
+import org.opends.server.core.ServerContext;
 import org.opends.server.monitors.EntryCacheMonitorProvider;
 import org.forgerock.opendj.ldap.DN;
 import org.opends.server.types.Entry;
@@ -104,7 +105,8 @@
   /**
    * Initializes this entry cache implementation so that it will be
    * available for storing and retrieving entries.
-   *
+   * @param serverContext
+   *            The server context.
    * @param  configuration  The configuration to use to initialize
    *                        the entry cache.
    *
@@ -117,7 +119,7 @@
    *                                   not related to the
    *                                   configuration.
    */
-  public abstract void initializeEntryCache(T configuration)
+  public abstract void initializeEntryCache(ServerContext serverContext, T configuration)
          throws ConfigException, InitializationException;
 
   /**
@@ -299,15 +301,6 @@
   public abstract void clearBackend(String backendID);
 
   /**
-   * Removes all entries from the cache that are below the provided
-   * DN.
-   *
-   * @param  baseDN  The base DN below which all entries should be
-   *                 flushed.
-   */
-  public abstract void clearSubtree(DN baseDN);
-
-  /**
    * Attempts to react to a scenario in which it is determined that
    * the system is running low on available memory.  In this case, the
    * entry cache should attempt to free some memory if possible to try

--
Gitblit v1.10.0