Author: justi9
Date: 2007-11-08 16:25:40 -0500 (Thu, 08 Nov 2007)
New Revision: 1275
Modified:
mgmt/cumin/python/cumin/exchange.strings
mgmt/notes/justin-todo.txt
Log:
Ajaxifies exchange status.
Modified: mgmt/cumin/python/cumin/exchange.strings
===================================================================
--- mgmt/cumin/python/cumin/exchange.strings 2007-11-08 21:15:48 UTC (rev 1274)
+++ mgmt/cumin/python/cumin/exchange.strings 2007-11-08 21:25:40 UTC (rev 1275)
@@ -87,7 +87,31 @@
function updateExchangeStatus(id, data) {
updateStatus(id, data);
+ var ms = data.root().elem("measurements");
+
+ var mrecv = ms.elem("msgreceives").elem("r").text().get();
+ var brecv = ms.elem("bytereceives").elem("r").text().get();
+ var mrt = ms.elem("msgroutes").elem("r").text().get();
+ var brt = ms.elem("byteroutes").elem("r").text().get();
+ var mdrp = ms.elem("msgdrops").elem("v").text().get();
+ var bdrp = ms.elem("bytedrops").elem("v").text().get();
+
var status = wooly.doc().elembyid(id);
+
+ var trs =
status.elem("table").elem("tbody").elems("tr", 1);
+ var tds = null;
+
+ tds = trs.next().elems("td");
+ tds.next().text().set(mrecv);
+ tds.next().text().set(brecv);
+
+ tds = trs.next().elems("td");
+ tds.next().text().set(mrt);
+ tds.next().text().set(brt);
+
+ tds = trs.next().elems("td");
+ tds.next().text().set(mdrp);
+ tds.next().text().set(bdrp);
}
[ExchangeStatus.html]
Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt 2007-11-08 21:15:48 UTC (rev 1274)
+++ mgmt/notes/justin-todo.txt 2007-11-08 21:25:40 UTC (rev 1275)
@@ -6,15 +6,13 @@
* Pagination and sort in tables
- * Exchange: ajaxify status
-
* Exchange: ajaxify charts
* Client: ajaxify status
- * Client: ajaxify status
+ * Client: ajaxify charts
- * Queue: ajaxify status
+ * Queue: ajaxify charts
Deferred
Show replies by date