From da00c6a28b4df6e2618cff17f952012f7d76c10c Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 5 Feb 2010 23:02:45 +0000 Subject: 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 --- qpid/python/commands/qpid-stat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qpid/python/commands/qpid-stat') diff --git a/qpid/python/commands/qpid-stat b/qpid/python/commands/qpid-stat index 29deeb2342..c6fc5ef0da 100755 --- a/qpid/python/commands/qpid-stat +++ b/qpid/python/commands/qpid-stat @@ -34,7 +34,6 @@ _types = "" _limit = 50 _increasing = False _sortcol = None -pattern = re.compile("^\\d+\\.\\d+\\.\\d+\\.\\d+:\\d+$") def Usage (): print "Usage: qpid-stat [OPTIONS] [broker-addr]" @@ -108,7 +107,7 @@ class Broker(object): list = qmf.getObjects(_class="connection", _package=package, _agent=self.brokerAgent) for conn in list: - if pattern.match(conn.address): + if not conn.shadow: self.connections[conn.getObjectId()] = conn list = qmf.getObjects(_class="session", _package=package, _agent=self.brokerAgent) -- cgit v1.2.1