From 9357fb33c8425bb731ead54ae7359aa4725f2fd5 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 03 Jun 2013 09:13:08 +0000
Subject: [PATCH] Fix OPENDJ-866 Local RS is named differently to remote RS under cn=replication,cn=monitor

---
 opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java b/opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
index 2d0143f..3966c4b 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2013 ForgeRock AS.
  */
 package org.opends.server.replication.service;
 
@@ -74,9 +75,10 @@
   @Override
   public String getMonitorInstanceName()
   {
-    return "Replication Domain " + domain.getServerId()
-           + ",cn=" + domain.getServiceID().replace(',', '_').replace('=', '_')
-           + ",cn=replication";
+    return "Directory server DS(" + domain.getServerId() + ") "
+        + domain.getLocalUrl() + ",cn="
+        + domain.getServiceID().replace(',', '_').replace('=', '_')
+        + ",cn=Replication";
   }
 
   /**

--
Gitblit v1.10.0