qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fraser Adams <fraser.ad...@blueyonder.co.uk>
Subject Re: QMF Tutorial
Date Fri, 16 Mar 2012 18:32:31 GMT
Hi Davide,
I'm afraid that I don't quite understand what you're trying to achieve - 
you might have to spell it out :-(

One thing I forgot to add, if you look in the source tree in 
qpid/specs/management-schema.xml that will tell you all of the 
properties available for all of the broker management objects.

The connection logger program that I pointed you at just might be able 
to give you some pointers, what that does is to list information about 
all connections, but it's quite a bit more tricksy than that. I was 
interested in identifying whether connections were producers or 
consumers. That's actually quite hard....

What I did was to get the connection, session and subscription objects 
and for each connection work out how many sessions and for each session 
work out how many subscriptions - it's hard because sessions are 
associated with connections not the other way around and subscriptions 
are associated with sessions. It's logical because of the multiplicity, 
if it the associations were done the *convenient* way there would be a 
1..* multiplicity but the way it has been implemented in QMF it's a 1..1 

Anyway as my connections know the associated subscriptions I can find 
the queue reference and from that find bindings - the "-q" option in my 
program displays the queues, bindings and exchanges associated with a 
connection kind of like a fancy qpid-config -b queues.

At a guess by "log connections of components owning to a certain 
"family" " you might be meaning log connections associated with a 
specific subset of bindings - if so you should be able to cannibalise my 
connection logger quite easily to do this.

Hope this makes sense and points you in the right direction.
Best regards,

On 16/03/12 17:58, Davide Anastasia wrote:
> Hi Fraser,
> Thanks for your quick reply!
> My primary language is C++ and I use the messaging API and QMF2. However
> I am not scared to prototype something in Python.
> What I am trying to do is to log connections of components owning to a
> certain "family", let's say all the components that can serve a certain
> type of request, so that a central "hub" knows how many potential
> consumers are available at every time. I thought it was the perfect
> scenario for a customized heartbeat, but I guess I can achieve the same
> result with the QMF, getting notification on connect and disconnect
> events.
> Am I going in the right direction? Does this make sense to you?
> Best,
> Davide
> -----Original Message-----
> From: Fraser Adams [mailto:fraser.adams@blueyonder.co.uk]
> Sent: 16 March 2012 16:49
> To: users@qpid.apache.org
> Subject: Re: QMF Tutorial
> Hi Davide
> What language are you interested in?
> I'm afraid QMF is still a bit disjoint you might be aware that there are
> two variants:
> QMF1 which uses a compact binary protocol and the QMF1 API - that's what
> the bundled qpid tools such as qpid-config, qpid-stat etc. use. That has
> good python support, I *think* the C++ API works but the Java
> implementation is very broken
> QMF2 uses a protocol based on Map messages, that is *relatively* easy to
> drive just by using Map messages because it's primarily in the form of
> key/value pairs. The QMF2 API has a specification hanging off the qpid
> wiki QMF pages There's I believe a prototype python implementation and
> I've written a Java implementation that covers the full API there's also
> a C++ API for QMF2 but unfortunately that bears no relation whatsoever
> to the API specified off the wiki???
> As I say it's rather disjoint :-(
> The main QMF page is here:
> https://cwiki.apache.org/qpid/qpid-management-framework.html
> A tutorial for the QMF1 python stuff is here:
> https://cwiki.apache.org/qpid/qmf-python-console-tutorial.html
> I recently wrote a connection logger application using this old API it's
> linked to this Jira and might give you some ideas
> https://issues.apache.org/jira/browse/QPID-3869
> The QMF2 documentation lives off here:
> https://cwiki.apache.org/qpid/qmfv2-project-page.html
> The Java QMF2 stuff I did is linked off this Jira
> https://issues.apache.org/jira/browse/QPID-3675
> Frase
> On 16/03/12 16:15, Davide Anastasia wrote:
>> Hi All,
>> Can anybody suggest a good tutorial on QMF?
>> Best,
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional
> commands, e-mail: users-help@qpid.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org

To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message