From 172f9ff26c2a07363b37ea83bdaba4ac6ef70226 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 18 Mar 2011 21:00:33 +0000
Subject: [PATCH] Fix issue opendj-92: improve replication thread names

---
 opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java b/opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java
index 962c9a7..8845c13 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2011 ForgeRock AS
  */
 package org.opends.server.replication.server;
 
@@ -815,14 +816,19 @@
   @Override
   public String toString()
   {
-    String localString;
     if (serverId != 0)
     {
-      localString = "Replication Server ";
-      localString += serverId + " " + serverURL + " " + getServiceId();
-    } else
-      localString = "Unknown server";
-    return localString;
+      StringBuilder builder = new StringBuilder("Replication server RS(");
+      builder.append(serverId);
+      builder.append(") for domain \"");
+      builder.append(replicationServerDomain.getBaseDn());
+      builder.append("\"");
+      return builder.toString();
+    }
+    else
+    {
+      return "Unknown server";
+    }
   }
   /**
    * Gets the status of the connected DS.

--
Gitblit v1.10.0