From 6b52c6b8cab3a7d696924b4ddf0a9687cef23ef2 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Fri, 17 Jul 2009 14:00:57 +0000 Subject: QPID-1990: add the messages queue position to the viewMessages() operation results, update management console QueueOperations tab accordingly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@795089 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/management/common/mbeans/ManagedQueue.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'java/management/common/src') diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java index d0d80fde0f..9c21d64cdf 100644 --- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java +++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java @@ -40,12 +40,13 @@ import org.apache.qpid.management.common.mbeans.annotations.MBeanOperationParame public interface ManagedQueue { static final String TYPE = "Queue"; - static final int VERSION = 2; + static final int VERSION = 3; //TabularType and contained CompositeType key/description information for message list //For compatibility reasons, DONT MODIFY the existing key values if expanding the set. - String[] VIEW_MSGS_COMPOSITE_ITEM_NAMES = {"AMQ MessageId", "Header", "Size(bytes)", "Redelivered"}; - String[] VIEW_MSGS_COMPOSITE_ITEM_DESCRIPTIONS = {"AMQ MessageId", "Header", "Size(bytes)", "Redelivered"}; + //"Queue Position" added in Qpid JMX API 1.3 + String[] VIEW_MSGS_COMPOSITE_ITEM_NAMES = {"AMQ MessageId", "Header", "Size(bytes)", "Redelivered", "Queue Position"}; + String[] VIEW_MSGS_COMPOSITE_ITEM_DESCRIPTIONS = {"AMQ MessageId", "Header", "Size(bytes)", "Redelivered", "Queue Position"}; String[] VIEW_MSGS_TABULAR_UNIQUE_INDEX = {VIEW_MSGS_COMPOSITE_ITEM_NAMES[0]}; //CompositeType key/description information for message content -- cgit v1.2.1