Hi Jeff, I'm afraid that I can't give I direct answer, but I may be able to help.
I'm not an expert on the C++ Console API, but one thing is for sure - it doesn't conform to the QMF2 API specified here: https://cwiki.apache.org/qpid/qmfv2-api-proposal.html QMF2 API In any obvious way. The QMF2 API certainly *does* have a getObjects method. I'm currently writing an implementation of this API, but it's for Java and I've still got a little way to go to finish it. I'd be interested to know if anyone is working on an implementation of the "proper" QMF2 API for C++ if not then when I've finished my Java one I just may port it to C++ 'cause I don't much like the current C++ one - it seems very limited , with a high cost of entry to do basic things. Until then your best bet might well be to use the QMF2 protocol directly. To be honest for simple fairly specific things such as your example this is probably easier than any API, though the reason I started down the path of a full blown API implementation was because as I got more sophisticated I found myself writing classes to abstract the Maps of Maps that you get with the protocol - if you want to access lots of properties your code could get quite messy without some wrapper classes and accessors. Sooo to give a proper answer... Gordon Sim actually put together a C++ example that's not quite what you need, but you should be able to work with (his example "shows a simple query of a queue by name. Only the message depth is printed but there a range of other stats and properties in the response") Take a look at: http://apache-qpid-users.2158936.n2.nabble.com/Number-of-messages-in-a-queue-td6382025.html Number of Messages in a queue Gordon's post is second from top. HTH Fraser Jeff Armstrong wrote: > > I'm trying to create a C++ QMF console (using version 0.10) that can query > some basic queue stats and properties (eg. # of queues, # of messages > in/out for a specific queue, durability, etc.). I can't seem to find any > useful information as to how to do this. I've read through the python QMF > console tutorial, and looked through the C++ API but still can't figure it > out. The ConsoleSession object seems to subscribe to events rather than > request objects like in the python tutorial. Does anyone have a short > example of how to create a console session that can get a specific > statistic for a specific queue? > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > -- View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/C-QMF-console-tp6631563p6632523.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:[email protected]
