qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fadams <fraser.ad...@blueyonder.co.uk>
Subject Re: qpid-config - what does q._altExchange_.name do??
Date Wed, 20 Jul 2011 16:32:00 GMT
Any takers on this? Is there some python guru out there who can explain what
this is doing.

I can't even get sensible answers Googling - imagine what "python
underscore" returns :-/

MTIA
Frase



fadams wrote:
> 
> Hello,
> In qpid-config there's code to print the name of the alternate exchange
> for queues or exchanges.
> 
> For queues it's 
> 
> if q.altExchange:
>                     print "--alternate-exchange=%s" %
> q._altExchange_.name,
> 
> I'm not familiar with python so the "_altExchange_" is very cryptic to me
> the "q.altExchange" just checks for the presence of the altExchange
> property.
> 
> The altExchange property is an objId that references an exchange to I'd
> have assumed code like
> 
> exchanges = self.qmf.getObjects(_class="exchange",
> _agent=self.brokerAgent)
> ex    = self.findById (exchanges, q.altExchange)
> altename = ex.name
> 
> would have been needed to find the name of the alternate exchange
> 
> Could someone please tell me what's going on?
> 
> Thanks
> Fraser
> 


--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/qpid-config-what-does-q-altExchange-name-do-tp6591980p6603419.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message