diff options
author | Ted Ross <tross@apache.org> | 2008-12-01 18:39:29 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-12-01 18:39:29 +0000 |
commit | c1fba9323dc0ae9199f4396a54cd3ed060438e7a (patch) | |
tree | ff47d7c8192597d545ea36a2b460685e5d55c307 /python/commands/qpid-queue-stats | |
parent | 04944e7d012c7f6f5e29a43a55f9d3acd34fd9f3 (diff) | |
download | qpid-python-c1fba9323dc0ae9199f4396a54cd3ed060438e7a.tar.gz |
Fixed regression caused by a change to the qmf.console API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@722167 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands/qpid-queue-stats')
-rwxr-xr-x | python/commands/qpid-queue-stats | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/python/commands/qpid-queue-stats b/python/commands/qpid-queue-stats index 5aa32f9b38..3c727fddfd 100755 --- a/python/commands/qpid-queue-stats +++ b/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: |