summaryrefslogtreecommitdiff
path: root/qpid/java/broker-plugins/amqp-0-8-protocol
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2014-08-03 18:05:16 +0000
committerKeith Wall <kwall@apache.org>2014-08-03 18:05:16 +0000
commit20beab35b19f246a88ec79828f788e512628252c (patch)
treedf020e25320a3e974b8c01b960cd5c77f13e4327 /qpid/java/broker-plugins/amqp-0-8-protocol
parent6ff0bc6c8a2b191519b3186ab997f9eb9aa309cb (diff)
downloadqpid-python-20beab35b19f246a88ec79828f788e512628252c.tar.gz
QPID-5957: [Java Broker] Extend the Session model object to expose transaction start and update times
* Expose the same information on the Connection tab within the Web Management UI. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1615424 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins/amqp-0-8-protocol')
-rw-r--r--qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java b/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
index ae6d607102..b6e1b7dd6a 100644
--- a/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
+++ b/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
@@ -1764,4 +1764,32 @@ public class AMQChannel<T extends AMQProtocolSession<T>>
{
return _modelObject;
}
+
+ @Override
+ public long getTransactionStartTime()
+ {
+ ServerTransaction serverTransaction = _transaction;
+ if (serverTransaction.isTransactional())
+ {
+ return serverTransaction.getTransactionStartTime();
+ }
+ else
+ {
+ return 0L;
+ }
+ }
+
+ @Override
+ public long getTransactionUpdateTime()
+ {
+ ServerTransaction serverTransaction = _transaction;
+ if (serverTransaction.isTransactional())
+ {
+ return serverTransaction.getTransactionUpdateTime();
+ }
+ else
+ {
+ return 0L;
+ }
+ }
}