summaryrefslogtreecommitdiff
path: root/qpid/python/commands/qpid-cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-02-05 23:02:45 +0000
committerAlan Conway <aconway@apache.org>2010-02-05 23:02:45 +0000
commitda00c6a28b4df6e2618cff17f952012f7d76c10c (patch)
treefb96aa96f454ee64a828d09da017dc55c1eb5cef /qpid/python/commands/qpid-cluster
parent2b86496e7e980834464c35f49cbf7337815aeb4c (diff)
downloadqpid-python-da00c6a28b4df6e2618cff17f952012f7d76c10c.tar.gz
Consistent connection names across a cluster.
- use the same host:port for connections and their shadows. - add shadow property to managment connection to identify shadows. - updated qpid-stat and qpid-cluster to filter on shadow property. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@907123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands/qpid-cluster')
-rwxr-xr-xqpid/python/commands/qpid-cluster3
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/python/commands/qpid-cluster b/qpid/python/commands/qpid-cluster
index 7afb7671b8..6d64765184 100755
--- a/qpid/python/commands/qpid-cluster
+++ b/qpid/python/commands/qpid-cluster
@@ -193,7 +193,6 @@ class BrokerManager:
self.qmf.delBroker(self.broker)
self.broker = None
self.brokers = []
- pattern = re.compile("^\\d+\\.\\d+\\.\\d+\\.\\d+:\\d+$")
idx = 0
for host in hostList:
@@ -209,7 +208,7 @@ class BrokerManager:
print "Clients on Member: ID=%s:" % displayList[idx]
connList = self.qmf.getObjects(_class="connection", _package="org.apache.qpid.broker", _broker=broker)
for conn in connList:
- if pattern.match(conn.address):
+ if not conn.shadow:
if self.config._numeric or self.config._delConn:
a = conn.address
else: