From 50ef5c1742d607847dc0e5080278bcdd7e84b69a Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Sun, 3 Aug 2014 18:06:09 +0000 Subject: QPID-5958: [Java Broker] Wire up the Connection#remoteProcessPid attribute to the client's process identifier made available as connection properties during connection negotiation. * Make information available via the Connection tab during the Web Management UI. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1615425 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/js/qpid/management/Connection.js | 7 +- .../src/main/java/resources/showConnection.html | 89 ++++++++++++++++------ 2 files changed, 72 insertions(+), 24 deletions(-) (limited to 'qpid/java/broker-plugins/management-http') diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js index 8836f6a40c..6c20f85dc0 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js @@ -86,6 +86,9 @@ define(["dojo/_base/xhr", "principal", "port", "transport", + "remoteProcessPid", + "createdTime", + "lastIoTime", "msgInRate", "bytesInRate", "bytesInRateUnits", @@ -150,7 +153,9 @@ define(["dojo/_base/xhr", this.principal.innerHTML = entities.encode(String(this.connectionData[ "principal" ])); this.port.innerHTML = entities.encode(String(this.connectionData[ "port" ])); this.transport.innerHTML = entities.encode(String(this.connectionData[ "transport" ])); - + this.remoteProcessPid.innerHTML = entities.encode(String(this.connectionData[ "remoteProcessPid" ])); + this.createdTime.innerHTML = UserPreferences.formatDateTime(this.connectionData[ "createdTime" ], {addOffset: true, appendTimeZone: true}); + this.lastIoTime.innerHTML = UserPreferences.formatDateTime(this.connectionData[ "lastIoTime" ], {addOffset: true, appendTimeZone: true}); }; ConnectionUpdater.prototype.update = function() diff --git a/qpid/java/broker-plugins/management-http/src/main/java/resources/showConnection.html b/qpid/java/broker-plugins/management-http/src/main/java/resources/showConnection.html index 1032bdeaef..7b76b42473 100644 --- a/qpid/java/broker-plugins/management-http/src/main/java/resources/showConnection.html +++ b/qpid/java/broker-plugins/management-http/src/main/java/resources/showConnection.html @@ -19,30 +19,73 @@ - -->
- Name: -
- User: - Pre-fetched: -
- ClientID: - Inbound: - - msg/s - - -
- Client Version: - Outbound: - - msg/s - - -
- Port: -
- Transport: -
+
+
+
Name:
+
+
+
+
User:
+
+
+
+
Client ID:
+
+
+
+
Client Version:
+
+
+
+
+
+
Inbound:
+
+ + msg/s + + +
+
+
+
Outbound:
+
+ + msg/s + + +
+
+
+
Connect Time:
+
+
+
+
+
+
Last I/O Time:
+
+
+
+
+
+
+
+
Remote Process (PID):
+
+
+
+
Port:
+
+
+
+
Transport:
+
+
+
+
+
-- cgit v1.2.1