From d90a8f4889fdc359bfe5f089b937b303a4d58973 Mon Sep 17 00:00:00 2001
From: fguigues <fguigues@localhost>
Date: Fri, 12 Dec 2008 13:13:01 +0000
Subject: [PATCH] * Ability to create monitor provider with hierarchical naming * Modification of Network Monitor provider names (includes hierarchical naming) * Provide basic Monitoring objects. * Add monitoring instrumentation for the connection handlers. * Add the ability to do a subtree search in the monitor backend.

---
 opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java b/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
index 72c8aba..252f3c6 100644
--- a/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
+++ b/opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
@@ -70,6 +70,9 @@
   // The attribute type that will be used to report the protocol.
   private AttributeType protocolType;
 
+  // The attribute type that will be used to report the config dn .
+  private AttributeType configDnType;
+
   // The connection handler with which this monitor is associated.
   private ConnectionHandler<?> connectionHandler;
 
@@ -118,6 +121,10 @@
     protocolType =
          DirectoryConfig.getAttributeType(ATTR_MONITOR_CONNHANDLER_PROTOCOL,
                                           true);
+
+    configDnType =
+         DirectoryConfig.getAttributeType(ATTR_MONITOR_CONFIG_DN,
+                                          true);
   }
 
 
@@ -174,6 +181,10 @@
   {
     LinkedList<Attribute> attrs = new LinkedList<Attribute>();
 
+    // Configuration DN
+    attrs.add(Attributes.create(configDnType, String.valueOf(
+            connectionHandler.getComponentEntryDN().toNormalizedString())));
+
     int numConnections = 0;
     LinkedList<ClientConnection> conns = new LinkedList<ClientConnection>(
         connectionHandler.getClientConnections());

--
Gitblit v1.10.0