From cd7c40541ea5f1c17a726f7880ce46df0a67d0d8 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 15 Aug 2006 17:23:29 +0000
Subject: [PATCH] Added JE backend configuration option to specify the number of cleaner threads. Default value is 1

---
 opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 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 66c1d12..1636ae2 100644
--- a/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
+++ b/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
@@ -174,6 +174,13 @@
        ConfigConstants.NAME_PREFIX_CFG + "database-lock-num-lock-tables";
 
 
+  /**
+   * The name of the attribute which configures the number threads
+   * allocated by the cleaner for log file processing.
+   */
+  public static final String ATTR_NUM_CLEANER_THREADS =
+       ConfigConstants.NAME_PREFIX_CFG + "database-cleaner-num-threads";
+
 
   /**
    * A map of JE property names to their associated configuration attribute.
@@ -202,6 +209,7 @@
   private static final ConfigAttribute CONFIG_ATTR_CHECKPOINTER_BYTES_INTERVAL;
   private static final ConfigAttribute CONFIG_ATTR_CHECKPOINTER_WAKEUP_INTERVAL;
   private static final ConfigAttribute CONFIG_ATTR_NUM_LOCK_TABLES;
+  private static final ConfigAttribute CONFIG_ATTR_NUM_CLEANER_THREADS;
 
 
 
@@ -326,6 +334,11 @@
          new IntegerConfigAttribute(ATTR_NUM_LOCK_TABLES, msg, false,
                                     false, true, true, 1, true, 32767);
 
+    msg = getMessage(MSGID_CONFIG_DESCRIPTION_NUM_CLEANER_THREADS);
+    CONFIG_ATTR_NUM_CLEANER_THREADS =
+         new IntegerConfigAttribute(ATTR_NUM_CLEANER_THREADS, msg, false,
+                                    false, false, true, 1, false, 0);
+
     // Register the parameters that have JE property names.
     registerPropertyAttribute("je.maxMemoryPercent",
                               CONFIG_ATTR_CACHE_PERCENT);
@@ -351,6 +364,8 @@
                               CONFIG_ATTR_CHECKPOINTER_WAKEUP_INTERVAL);
     registerPropertyAttribute("je.lock.nLockTables",
                               CONFIG_ATTR_NUM_LOCK_TABLES);
+    registerPropertyAttribute("je.cleaner.threads",
+                              CONFIG_ATTR_NUM_CLEANER_THREADS);
 
     // These parameters do not have JE property names.
     configAttrList.add(CONFIG_ATTR_TXN_NO_SYNC);

--
Gitblit v1.10.0