activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [01/14] activemq git commit: [no jira] make networkConsumerIds visible in toString of consumerinfo to aid tracing consumers in a network via transport trace logging
Date Thu, 07 Sep 2017 16:17:37 GMT
Repository: activemq
Updated Branches:
  refs/heads/activemq-5.15.x 51b428f49 -> 938745141


[no jira] make networkConsumerIds visible in toString of consumerinfo to aid tracing consumers
in a network via transport trace logging

(cherry picked from commit 499347542c91774f0bd4a4e2a1a3932e286a7934)


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/cb62fd83
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/cb62fd83
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/cb62fd83

Branch: refs/heads/activemq-5.15.x
Commit: cb62fd8388902630469dfdfaa927c91d84366b60
Parents: 51b428f
Author: gtully <gary.tully@gmail.com>
Authored: Fri Jul 7 16:01:49 2017 +0100
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Thu Sep 7 12:08:15 2017 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/activemq/command/ConsumerInfo.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/cb62fd83/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java
----------------------------------------------------------------------
diff --git a/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java b/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java
index 5ccafab..eec3c5c 100644
--- a/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java
+++ b/activemq-client/src/main/java/org/apache/activemq/command/ConsumerInfo.java
@@ -17,6 +17,7 @@
 package org.apache.activemq.command;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
@@ -532,4 +533,11 @@ public class ConsumerInfo extends BaseCommand implements TransientInitializer
{
         lastDeliveredSequenceId = RemoveInfo.LAST_DELIVERED_UNSET;
     }
 
+    @Override
+    public String toString() {
+        HashMap<String, Object> overrideFields = new HashMap<String, Object>();
+        overrideFields.put("networkConsumerIds", networkConsumerIds);
+        return super.toString(overrideFields);
+    }
+
 }


Mime
View raw message