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/ServerWriter.java | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/ServerWriter.java b/opends/src/server/org/opends/server/replication/server/ServerWriter.java
index 8632baa..4eee050 100644
--- a/opends/src/server/org/opends/server/replication/server/ServerWriter.java
+++ b/opends/src/server/org/opends/server/replication/server/ServerWriter.java
@@ -63,24 +63,25 @@
private final ReplicationServerDomain replicationServerDomain;
private final short protocolVersion;
+
+
/**
- * Create a ServerWriter.
- * Then ServerWriter then waits on the ServerHandler for new updates
- * and forward them to the server
+ * Create a ServerWriter. Then ServerWriter then waits on the ServerHandler
+ * for new updates and forward them to the server
*
- * @param session the ProtocolSession that will be used to send updates.
- * @param serverId the Identifier of the server.
- * @param handler handler for which the ServerWriter is created.
- * @param replicationServerDomain The ReplicationServerDomain of this
- * ServerWriter.
+ * @param session
+ * the ProtocolSession that will be used to send updates.
+ * @param handler
+ * handler for which the ServerWriter is created.
+ * @param replicationServerDomain
+ * The ReplicationServerDomain of this ServerWriter.
*/
- public ServerWriter(ProtocolSession session, int serverId,
- ServerHandler handler,
- ReplicationServerDomain replicationServerDomain)
+ public ServerWriter(ProtocolSession session, ServerHandler handler,
+ ReplicationServerDomain replicationServerDomain)
{
- super("Replication Writer Thread for handler of " +
- handler.toString() +
- " in " + replicationServerDomain);
+ super("Replication server RS(" + handler.getReplicationServerId()
+ + ") writing to " + handler.toString() + " at "
+ + session.getReadableRemoteAddress());
this.session = session;
this.handler = handler;
--
Gitblit v1.10.0