summaryrefslogtreecommitdiff
path: root/python/commands
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-06-02 16:01:51 +0000
committerTed Ross <tross@apache.org>2008-06-02 16:01:51 +0000
commit40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94 (patch)
tree80438fbfb8739e9189fdad70d8271ae2ca8d26f4 /python/commands
parente1c0b830b67e68be71e65ef18657e746ed6b971f (diff)
downloadqpid-python-40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94.tar.gz
QPID-1113 Management cleanup and performance enhancements
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands')
-rwxr-xr-xpython/commands/qpid-config6
-rwxr-xr-xpython/commands/qpid-queue-stats8
-rwxr-xr-xpython/commands/qpid-route16
3 files changed, 15 insertions, 15 deletions
diff --git a/python/commands/qpid-config b/python/commands/qpid-config
index 58a2272ed2..cc9315f7ea 100755
--- a/python/commands/qpid-config
+++ b/python/commands/qpid-config
@@ -145,7 +145,7 @@ class BrokerManager:
print "======================================================="
for ex in exchanges:
if self.match (ex.name, filter):
- print "%4c %-10s%5d %s" % (YN (ex.durable), ex.type, ex.bindings, ex.name)
+ print "%4c %-10s%5d %s" % (YN (ex.durable), ex.type, ex.bindingCount, ex.name)
def ExchangeListRecurse (self, filter):
self.ConnectToBroker ()
@@ -185,12 +185,12 @@ class BrokerManager:
fc = int (args[FILECOUNT])
print "%4c%9c%7c%10d%11dx%-14d%s" % \
(YN (q.durable), YN (q.autoDelete),
- YN (q.exclusive), q.bindings, fc, fs, q.name)
+ YN (q.exclusive), q.bindingCount, fc, fs, q.name)
else:
if not _durable:
print "%4c%9c%7c%10d %s" % \
(YN (q.durable), YN (q.autoDelete),
- YN (q.exclusive), q.bindings, q.name)
+ YN (q.exclusive), q.bindingCount, q.name)
def QueueListRecurse (self, filter):
self.ConnectToBroker ()
diff --git a/python/commands/qpid-queue-stats b/python/commands/qpid-queue-stats
index 437714fec4..98dfa7580a 100755
--- a/python/commands/qpid-queue-stats
+++ b/python/commands/qpid-queue-stats
@@ -126,14 +126,14 @@ class BrokerManager:
deltaTime = float (obj.timestamps[0] - lastSample.timestamps[0])
enqueueRate = float (obj.msgTotalEnqueues - lastSample.msgTotalEnqueues) / (deltaTime / 1000000000.0)
dequeueRate = float (obj.msgTotalDequeues - lastSample.msgTotalDequeues) / (deltaTime / 1000000000.0)
- print "%-41s%10.2f%10d..%-10d%13.2f%13.2f" % \
- (name, deltaTime / 1000000000, obj.msgDepthLow, obj.msgDepthHigh, enqueueRate, dequeueRate)
+ print "%-41s%10.2f%11d%13.2f%13.2f" % \
+ (name, deltaTime / 1000000000, obj.msgDepth, enqueueRate, dequeueRate)
def Display (self):
self.ConnectToBroker ()
- print "Queue Name Sec Depth Range Enq Rate Deq Rate"
- print "==================================================================================================="
+ print "Queue Name Sec Depth Enq Rate Deq Rate"
+ print "========================================================================================"
try:
while True:
sleep (1)
diff --git a/python/commands/qpid-route b/python/commands/qpid-route
index 4e8dbc3a77..2d5249ab78 100755
--- a/python/commands/qpid-route
+++ b/python/commands/qpid-route
@@ -201,14 +201,14 @@ class RouteManager:
if _verbose:
print "Creating inter-broker binding..."
bridgeArgs = {}
- bridgeArgs["durable"] = _durable
- bridgeArgs["src"] = exchange
- bridgeArgs["dest"] = exchange
- bridgeArgs["key"] = routingKey
- bridgeArgs["tag"] = id
- bridgeArgs["excludes"] = excludes
- bridgeArgs["src_is_queue"] = 0
- bridgeArgs["src_is_local"] = 0
+ bridgeArgs["durable"] = _durable
+ bridgeArgs["src"] = exchange
+ bridgeArgs["dest"] = exchange
+ bridgeArgs["key"] = routingKey
+ bridgeArgs["tag"] = id
+ bridgeArgs["excludes"] = excludes
+ bridgeArgs["srcIsQueue"] = 0
+ bridgeArgs["srcIsLocal"] = 0
res = mc.syncCallMethod (self.mch, link.id, link.classKey, "bridge", bridgeArgs)
if res.status == 4:
print "Can't create a durable route on a non-durable link"