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/monitors/ConnectionHandlerMonitor.java | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java b/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
index 5b51bf0..fef6c8d 100644
--- a/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
+++ b/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
@@ -32,10 +32,11 @@
import java.util.LinkedList;
import java.util.List;
+import org.opends.server.admin.std.server.ConnectionHandlerCfg;
+import org.opends.server.admin.std.server.MonitorProviderCfg;
import org.opends.server.api.ClientConnection;
import org.opends.server.api.ConnectionHandler;
import org.opends.server.api.MonitorProvider;
-import org.opends.server.config.ConfigEntry;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
import org.opends.server.types.AttributeValue;
@@ -54,11 +55,8 @@
* listeners, and established connections.
*/
public class ConnectionHandlerMonitor
- extends MonitorProvider
+ extends MonitorProvider<MonitorProviderCfg>
{
-
-
-
// The attribute type that will be used to report the established connections.
private AttributeType connectionsType;
@@ -88,11 +86,11 @@
* @param connectionHandler The connection handler with which this monitor
* is associated.
*/
- public ConnectionHandlerMonitor(ConnectionHandler connectionHandler)
+ public ConnectionHandlerMonitor(
+ ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler)
{
super(connectionHandler.getConnectionHandlerName());
-
this.connectionHandler = connectionHandler;
}
@@ -101,7 +99,7 @@
/**
* {@inheritDoc}
*/
- public void initializeMonitorProvider(ConfigEntry configEntry)
+ public void initializeMonitorProvider(MonitorProviderCfg configuration)
{
monitorName = connectionHandler.getConnectionHandlerName();
--
Gitblit v1.10.0