From 8bdfb229e4b8789bb1954fa0da8c1098c382bd4e Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 10 Mar 2009 08:56:32 +0000
Subject: [PATCH] fix for 3804 : improve replication monitoring

---
 opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java b/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
index 3773ecd..b5c9476 100644
--- a/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
+++ b/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
@@ -76,8 +76,9 @@
   @Override
   public String getMonitorInstanceName()
   {
-    return "Replication Domain "  + domain.getServiceID()
-       + " " + domain.getServerId();
+    return "Replication Domain " + domain.getServerId()
+           + ",cn=" + domain.getServiceID().replace(',', '_').replace('=', '_')
+           + ",cn=replication";
   }
 
   /**
@@ -94,7 +95,7 @@
     ArrayList<Attribute> attributes = new ArrayList<Attribute>();
 
     /* get the base dn */
-    Attribute attr = Attributes.create("base-dn", domain.getServiceID());
+    Attribute attr = Attributes.create("domain-name", domain.getServiceID());
     attributes.add(attr);
 
     /* get the base dn */

--
Gitblit v1.10.0