From 3b044315af30d97abd4f7ad4e249ba6a3de4639e Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 12 Dec 2011 11:57:14 +0000
Subject: [PATCH] Fix OPENDJ-383 : Expose JE fileCacheSize property through OpenDJ configuration and admin Added optional ds-cfg-db-log-filecache-size attribute.

---
 opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java b/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
index 8124590..6bef559 100644
--- a/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
+++ b/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2010 ForgeRock AS.
+ *      Portions Copyright 2010-2011 ForgeRock AS.
  */
 package org.opends.server.backends.jeb;
 
@@ -202,6 +202,13 @@
   public static final String ATTR_NUM_CLEANER_THREADS =
        ConfigConstants.NAME_PREFIX_CFG + "db-num-cleaner-threads";
 
+  /**
+   * The name of the attribute which configures the size of the file
+   * handle cache.
+   */
+  public static final String ATTR_LOG_FILECACHE_SIZE =
+       ConfigConstants.NAME_PREFIX_CFG + "db-log-filecache-size";
+
 
   /**
    * The name of the attribute which may specify any native JE properties.
@@ -405,6 +412,7 @@
                    ATTR_CHECKPOINTER_WAKEUP_INTERVAL);
       registerProp("je.lock.nLockTables", ATTR_NUM_LOCK_TABLES);
       registerProp("je.cleaner.threads", ATTR_NUM_CLEANER_THREADS);
+      registerProp("je.log.fileCacheSize", ATTR_LOG_FILECACHE_SIZE);
     }
     catch (Exception e)
     {

--
Gitblit v1.10.0