From 5d7cb01ea4c2fc6a275dfa30122c78019290add5 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 1 Dec 2008 18:39:29 +0000 Subject: Fixed regression caused by a change to the qmf.console API. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722167 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/commands/qpid-queue-stats | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/commands/qpid-queue-stats b/qpid/python/commands/qpid-queue-stats index 5aa32f9b38..3c727fddfd 100755 --- a/qpid/python/commands/qpid-queue-stats +++ b/qpid/python/commands/qpid-queue-stats @@ -29,7 +29,6 @@ from threading import Condition from qmf.console import Session, Console from qpid.peer import Closed from qpid.connection import Connection, ConnectionFailed -from qpid.util import connect from time import sleep class BrokerManager(Console): @@ -54,7 +53,7 @@ class BrokerManager(Console): self.filter = filter def objectProps(self, broker, record): - className = record.getClassKey()[1] + className = record.getClassKey().getClassName() if className != "queue": return @@ -63,7 +62,7 @@ class BrokerManager(Console): self.objects[id] = (record.name, None, None) def objectStats(self, broker, record): - className = record.getClassKey()[1] + className = record.getClassKey().getClassName() if className != "queue": return @@ -103,11 +102,7 @@ class BrokerManager(Console): def Display (self): - classes = self.session.getClasses("org.apache.qpid.broker") - for cls in classes: - if cls[1] == "queue": - queueClassKey = cls - self.session.bindClass(queueClassKey) + self.session.bindClass("org.apache.qpid.broker", "queue") print "Queue Name Sec Depth Enq Rate Deq Rate" print "========================================================================================" try: -- cgit v1.2.1