From b0cf989c6727f18d0c7ee80b4753ef95d60955ea Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 25 Jun 2007 01:46:55 +0000
Subject: [PATCH] Migrate the monitor provider configuration to the admin framework.
---
opends/src/server/org/opends/server/api/MonitorProvider.java | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/MonitorProvider.java b/opends/src/server/org/opends/server/api/MonitorProvider.java
index e7c198c..e74acfe 100644
--- a/opends/src/server/org/opends/server/api/MonitorProvider.java
+++ b/opends/src/server/org/opends/server/api/MonitorProvider.java
@@ -30,7 +30,7 @@
import java.util.List;
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.MonitorProviderCfg;
import org.opends.server.config.ConfigException;
import org.opends.server.types.Attribute;
import org.opends.server.types.DebugLogLevel;
@@ -49,8 +49,11 @@
* implemented by a Directory Server module that can provide usage,
* performance, availability, or other kinds of monitor information
* to clients.
+ *
+ * @param <T> The type of configuration handled by this monitor
+ * provider.
*/
-public abstract class MonitorProvider
+public abstract class MonitorProvider<T extends MonitorProviderCfg>
extends DirectoryThread
{
/**
@@ -89,9 +92,8 @@
* Initializes this monitor provider based on the information in the
* provided configuration entry.
*
- * @param configEntry The configuration entry that contains the
- * information to use to initialize this
- * monitor provider.
+ * @param configuration The configuration to use to initialize
+ * this monitor provider.
*
* @throws ConfigException If an unrecoverable problem arises in
* the process of performing the
@@ -102,8 +104,7 @@
* related to the server
* configuration.
*/
- public abstract void initializeMonitorProvider(
- ConfigEntry configEntry)
+ public abstract void initializeMonitorProvider(T configuration)
throws ConfigException, InitializationException;
--
Gitblit v1.10.0