From 7130333653ea598d87fff1e80bb98e6b19e37c1a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 28 Jun 2007 15:07:54 +0000
Subject: [PATCH] Migrate the work queue configuration to the admin framework.
---
opends/src/server/org/opends/server/api/WorkQueue.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/WorkQueue.java b/opends/src/server/org/opends/server/api/WorkQueue.java
index d28a6f4..55b61d2 100644
--- a/opends/src/server/org/opends/server/api/WorkQueue.java
+++ b/opends/src/server/org/opends/server/api/WorkQueue.java
@@ -28,7 +28,7 @@
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.WorkQueueCfg;
import org.opends.server.config.ConfigException;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.InitializationException;
@@ -45,16 +45,17 @@
* implementations, but in general it is assumed that one or more
* worker threads will be associated with the queue and may be used to
* process requests in parallel.
+ *
+ * @param <T> The type of configuration handled by this work queue.
*/
-public abstract class WorkQueue
+public abstract class WorkQueue<T extends WorkQueueCfg>
{
/**
* Initializes this work queue based on the information in the
* provided configuration entry.
*
- * @param configEntry The configuration entry that contains the
- * information to use to initialize this work
- * queue.
+ * @param configuration The configuration to use to initialize
+ * the work queue.
*
* @throws ConfigException If the provided configuration entry
* does not have a valid work queue
@@ -65,7 +66,7 @@
* related to the server
* configuration.
*/
- public abstract void initializeWorkQueue(ConfigEntry configEntry)
+ public abstract void initializeWorkQueue(T configuration)
throws ConfigException, InitializationException;
--
Gitblit v1.10.0