qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1617160 - in /qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources: js/qpid/management/Queue.js showQueue.html
Date Sun, 10 Aug 2014 20:52:20 GMT
Author: kwall
Date: Sun Aug 10 20:52:20 2014
New Revision: 1617160

URL: http://svn.apache.org/r1617160
Log:
QPID-5984: [Java Broker] Queue tab improvements

* Revert to two column layout to optimise use of screen space
* Expose flow control, oldest message age and maximum delivery attempt attributes

Modified:
    qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Queue.js
    qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/showQueue.html

Modified: qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Queue.js
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Queue.js?rev=1617160&r1=1617159&r2=1617160&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Queue.js
(original)
+++ qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Queue.js
Sun Aug 10 20:52:20 2014
@@ -333,7 +333,11 @@ define(["dojo/_base/xhr",
                            "bytesInRateUnits",
                            "msgOutRate",
                            "bytesOutRate",
-                           "bytesOutRateUnits"]);
+                           "bytesOutRateUnits",
+                           "queueFlowResumeSizeBytes",
+                           "queueFlowControlSizeBytes",
+                           "maximumDeliveryAttempts",
+                           "oldestMessageAge"]);
 
 
 
@@ -413,6 +417,13 @@ define(["dojo/_base/xhr",
                {
                    this.messageGroups.style.display = "none";
                }
+
+               this.queueFlowControlSizeBytes.innerHTML = entities.encode(String(this.queueData[
"queueFlowControlSizeBytes" ]));
+               this.queueFlowResumeSizeBytes.innerHTML = entities.encode(String(this.queueData[
"queueFlowResumeSizeBytes" ]));
+
+               this.oldestMessageAge.innerHTML = entities.encode(String(this.queueData[ "oldestMessageAge"
] / 1000));
+               var maximumDeliveryAttempts = this.queueData[ "maximumDeliveryAttempts" ];
+               this.maximumDeliveryAttempts.innerHTML = entities.encode(String( maximumDeliveryAttempts
== 0 ? "" : maximumDeliveryAttempts));
            };
 
            QueueUpdater.prototype.update = function()

Modified: qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/showQueue.html
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/showQueue.html?rev=1617160&r1=1617159&r2=1617160&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/showQueue.html
(original)
+++ qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/showQueue.html
Sun Aug 10 20:52:20 2014
@@ -20,22 +20,81 @@
  -->
 <div class="queue">
     <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Queue Attributes',
 open: true">
+
         <div class="clear">
             <div class="formLabel-labelCell">Name:</div>
-            <div class="name"></div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">State:</div>
-            <div class="state"></div>
+            <div class="name formValue-valueCell"></div>
         </div>
         <div class="clear">
-            <div class="formLabel-labelCell">Durable:</div>
-            <div class="durable"></div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Persist Messages:</div>
-            <div class="messageDurability"></div>
+        <div class="alignLeft">
+            <div class="clear">
+                <div class="formLabel-labelCell">Type:</div>
+                <div class="type formValue-valueCell"></div>
+                <div class="typeQualifier formValue-valueCell"></div>
+            </div>
+            <div class="clear">
+                <div class="formLabel-labelCell">State:</div>
+                <div class="state formValue-valueCell"></div>
+            </div>
+            <div class="clear">
+                <div class="formLabel-labelCell">Durable:</div>
+                <div class="durable formValue-valueCell"></div>
+            </div>
+            <div class="clear">
+                <div class="formLabel-labelCell">Lifespan:</div>
+                <div class="lifetimePolicy formValue-valueCell"></div>
+            </div>
+            <div class="clear">
+                <div class="formLabel-labelCell">Persist Messages:</div>
+                <div class="messageDurability formValue-valueCell"></div>
+            </div>
+        </div>
+        <div class="alignRight">
+            <div>
+                <div class="formLabel-labelCell">Inbound:</div>
+                <div class="formValue-valueCell">
+                    <span class="msgInRate"></span>
+                    <span> msg/s</span>
+                    <span class="bytesInRate"></span>
+                    <span class="bytesInRateUnits"></span>
+                </div>
+            </div>
+            <div>
+                <div class="formLabel-labelCell">Outbound:</div>
+                <div class="formValue-valueCell">
+                    <span class="msgOutRate"></span>
+                    <span> msg/s</span>
+                    <span class="bytesOutRate"></span>
+                    <span class="bytesOutRateUnits"></span>
+                </div>
+            </div>
+            <div>
+                <div class="formLabel-labelCell">Size:</div>
+                <div class="formValue-valueCell">
+                    <span class="queueDepthMessages"></span>
+                    <span> msgs</span>
+                    <span class="queueDepthBytes">(</span>
+                    <span class="queueDepthBytesUnits">)</span>
+                </div>
+            </div>
+            <div>
+                <div class="formLabel-labelCell">Pre-fetched:</div>
+                <div class="formValue-valueCell">
+                    <span class="unacknowledgedMessages"></span>
+                    <span> msgs</span>
+                    <span class="unacknowledgedBytes">(</span>
+                    <span class="unacknowledgedBytesUnits">)</span>
+                </div>
+            </div>
+            <div>
+                <div class="formLabel-labelCell">Oldest Message Age:</div>
+                <div class="formValue-valueCell">
+                    <span class="oldestMessageAge"></span>
+                    <span> secs</span>
+                </div>
+            </div>
         </div>
+        <div class="clear"></div>
         <div class="clear">
             <div class="formLabel-labelCell">Enforced Max. Ttl(ms):</div>
             <div class="maximumMessageTtl"></div>
@@ -53,55 +112,12 @@
             <div class="owner"></div>
         </div>
         <div class="clear">
-            <div class="formLabel-labelCell">Lifespan:</div>
-            <div class="lifetimePolicy"></div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Type:</div>
-            <div>
-                <span class="type"></span>
-                <span class="typeQualifier"></span>
-            </div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Size:</div>
-            <div>
-                <span class="queueDepthMessages"></span>
-                <span> msgs</span>
-                <span class="queueDepthBytes">(</span>
-                <span class="queueDepthBytesUnits">)</span>
-            </div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Pre-fetched:</div>
-            <div>
-                <span class="unacknowledgedMessages"></span>
-                <span> msgs</span>
-                <span class="unacknowledgedBytes">(</span>
-                <span class="unacknowledgedBytesUnits">)</span>
-            </div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Inbound:</div>
-            <div>
-                <span class="msgInRate"></span>
-                <span> msg/s</span>
-                <span class="bytesInRate">(</span>
-                <span class="bytesInRateUnits">)</span>
-            </div>
-        </div>
-        <div class="clear">
-            <div class="formLabel-labelCell">Outbound:</div>
-            <div>
-                <span class="msgOutRate"></span>
-                <span> msg/s</span>
-                <span class="bytesOutRate">(</span>
-                <span class="bytesOutRateUnits">)</span>
-            </div>
+            <div class="formLabel-labelCell">Alternate Exchange:</div>
+            <div class="alternateExchange"></div>
         </div>
         <div class="clear">
-            <div class="formLabel-labelCell">AlternateExchange:</div>
-            <div class="alternateExchange"></div>
+            <div class="formLabel-labelCell">Maximum Delivery Attempts:</div>
+            <div class="maximumDeliveryAttempts"></div>
         </div>
         <div class="clear messageGroups">
           <div class="clear">
@@ -133,6 +149,25 @@
         <button data-dojo-type="dijit.form.Button" class="copyMessagesButton" type="button">Copy
Messages</button>
     </div>
     <br/>
+    <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Flow Control Settings',
open: false">
+        <div class="clear">
+            <div class="formLabel-labelCell">Capacity:</div>
+            <div>
+                <span class="queueFlowControlSizeBytes"></span>
+                <span>B</span>
+            </div>
+        </div>
+        <div class="clear">
+            <div class="formLabel-labelCell">Resume Capacity:</div>
+            <div>
+                <span class="queueFlowResumeSizeBytes"></span>
+                <span>B</span>
+            </div>
+        </div>
+        <div class="clear"></div>
+    </div>
+
+    <br/>
     <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Alerting Thresholds',
open: false">
       <div class="clear">
             <div class="formLabel-labelCell">Queue Depth:</div>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message