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/core/DirectoryServer.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index ebe41bf..780386e 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -163,7 +163,6 @@
 import org.opends.server.types.OperatingSystem;
 import org.opends.server.types.OperationType;
 import org.opends.server.types.Privilege;
-import org.opends.server.types.RDN;
 import org.opends.server.types.RestoreConfig;
 import org.opends.server.types.ResultCode;
 import org.opends.server.types.Schema;
@@ -9827,7 +9826,8 @@
     DN monitorRootDN;
     try
     {
-      monitorRootDN = DN.decode(DN_MONITOR_ROOT);
+      // Get a complete DN which could be a tree naming schema
+      monitorRootDN = DN.decode("cn="+monitorName+","+DN_MONITOR_ROOT);
     }
     catch (DirectoryException e)
     {
@@ -9835,8 +9835,7 @@
       throw new RuntimeException();
     }
 
-    RDN rdn = RDN.create(cnType, new AttributeValue(cnType, monitorName));
-    return monitorRootDN.concat(rdn);
+    return monitorRootDN;
   }
 
 

--
Gitblit v1.10.0