Re: Plans for QMF v1 and v2 (was Re: QMFv2 object update bug [WAS Re: Questions from a novice])

2013-05-06 Thread Bill Freeman
- Original Message - > > From: "Gordon Sim" > > To: users@qpid.apache.org > > Cc: d...@qpid.apache.org > > Sent: Monday, May 6, 2013 7:11:18 AM > > Subject: Plans for QMF v1 and v2 (was Re: QMFv2 object update bug [WAS > Re: Questions from

Re: Plans for QMF v1 and v2 (was Re: QMFv2 object update bug [WAS Re: Questions from a novice])

2013-05-06 Thread Ken Giusti
pid.apache.org > Sent: Monday, May 6, 2013 7:11:18 AM > Subject: Plans for QMF v1 and v2 (was Re: QMFv2 object update bug [WAS Re: > Questions from a novice]) > > On 05/03/2013 04:51 PM, Ken Giusti wrote: > > I want to know what the > > QPID project's plan is for QM

Plans for QMF v1 and v2 (was Re: QMFv2 object update bug [WAS Re: Questions from a novice])

2013-05-06 Thread Gordon Sim
On 05/03/2013 04:51 PM, Ken Giusti wrote: I want to know what the QPID project's plan is for QMFv1/v2 support in the C++ broker going forward. If the consensus is that a 1.x C++ broker is going to support both QMFv1 and QMFv2, then simply reverting all the changes I've made to qmf.console and re

Re: QMFv2 object update bug [WAS Re: Questions from a novice]

2013-04-11 Thread Fraser Adams
On 11/04/13 13:50, Bill Freeman wrote: I can see three cases in which a console would want to receive both QMF1 and QMF2: 1. Testing of QMF itself. But there isn't much that couldn't be tested using two separate console processes (arrival order, maybe?), so this doesn't seem to be an imp

Re: Questions from a novice

2013-04-05 Thread Bill Freeman
On Fri, Apr 5, 2013 at 3:38 PM, Ken Giusti wrote: > - Original Message - > > From: "Bill Freeman" > > QMF V2 has been available for some time now, and we've cut all the project > tools and libraries over to speaking it. If we start down the road to > deprecating V1, turning off the brok

Re: Questions from a novice

2013-04-05 Thread Bill Freeman
On Fri, Apr 5, 2013 at 2:37 PM, Bill Freeman wrote: > On Fri, Apr 5, 2013 at 2:09 PM, Ken Giusti wrote: > >> - Original Message - >> > From: "Bill Freeman" >> ... >> > >> > However, it would be nice to know how to get the console to only >> subscribe >> > to the V2 queues. It's not cl

Re: Questions from a novice

2013-04-05 Thread Ken Giusti
- Original Message - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Friday, April 5, 2013 2:37:23 PM > Subject: Re: Questions from a novice > > On Fri, Apr 5, 2013 at 2:09 PM, Ken Giusti wrote: > > > > > > > -

Re: Questions from a novice

2013-04-05 Thread Fraser Adams
On 05/04/13 19:27, Ken Giusti wrote: Your code is fine, and your observations are 100% correct. You _should_ be seeing both, but are just getting V1 updates. That's the bug from QPID-4689. I _just_ pushed a fix to trunk, so if you update, you should start seeing V2 objects. The commit is here:

Re: Questions from a novice

2013-04-05 Thread Bill Freeman
On Fri, Apr 5, 2013 at 2:09 PM, Ken Giusti wrote: > > > - Original Message - > > From: "Bill Freeman" > ... > > > > However, it would be nice to know how to get the console to only > subscribe > > to the V2 queues. It's not clear that I can require the brokers to be > > reconfigured as

Re: Questions from a novice

2013-04-05 Thread Ken Giusti
Hi Frase - Original Message - > From: "Fraser Adams" > To: users@qpid.apache.org > Sent: Friday, April 5, 2013 2:09:12 PM > Subject: Re: Questions from a novice > > Hi Guys, > This thread has intrigued me a bit. > > I must admit that

Re: Questions from a novice

2013-04-05 Thread Ken Giusti
- Original Message - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Friday, April 5, 2013 12:45:02 PM > Subject: Re: Questions from a novice > > Ken, > > Yes, with the patch in, I get callbacks to my qmf.console.Console sub-class > in

Re: Questions from a novice

2013-04-05 Thread Fraser Adams
Hi Guys, This thread has intrigued me a bit. I must admit that I had thought the qmf.console.Console, qmf.console.Session stuff was QMF1 only so I was intrigued by the comments about QMF2. I dug out an old python program. It starts like: class AuditConsole(Console): # AuditConsole Constr

Re: Questions from a novice

2013-04-05 Thread Bill Freeman
Ken, Yes, with the patch in, I get callbacks to my qmf.console.Console sub-class instance's callback methods for both V1 and V2 updates. There are some differences in the plumbing: V1 initial updates carry properties only. V2 initial updates carry both properties and statistics. Both are s

Re: Questions from a novice

2013-04-03 Thread Bill Freeman
Thanks. I'm snowed under. I'll try the patch in a day or so. Bill On Wed, Apr 3, 2013 at 12:56 PM, Ken Giusti wrote: > > > - Original Message - > > From: "Bill Freeman" > > To: users@qpid.apache.org > > Sent: Wednesday, April 3, 20

Re: Questions from a novice

2013-04-03 Thread Fraser Adams
Hi folks, I'm revisiting this having got my IT back, comments inline... Frase On 29/03/13 13:29, Gordon Sim wrote: On 03/28/2013 08:52 PM, Bill Freeman wrote: So it occurs to me to ask whether the correspondence between named queue and object id survives broker restarts? I believe with QMFv2

Re: Questions from a novice

2013-04-03 Thread Ken Giusti
- Original Message - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Wednesday, April 3, 2013 9:45:49 AM > Subject: Re: Questions from a novice > > On Tue, Apr 2, 2013 at 5:22 PM, Ken Giusti wrote: > > > When console.py connects to a br

Re: Questions from a novice

2013-04-03 Thread Fraser Adams
On 03/04/13 14:45, Bill Freeman wrote: And, in fact, my broker has those exchanges, For info I think that every qpid version from at least 0.8 has supported QMF2 ()in the C++ broker) so these exchanges are almost certain to be present unless you have really old brokers around (and if you do I'

Re: Questions from a novice

2013-04-03 Thread Fraser Adams
Hi Ken, I guess the bit that you are alluding to below is: ## ## Check to see if the broker has QMFv2 exchanges configured ## direct_result = self.amqpSession.exchange_query("qmf.default.direct") topic_result = self.amqpSession.exchange_query("qmf.default.topic")

Re: Questions from a novice

2013-04-03 Thread Bill Freeman
On Tue, Apr 2, 2013 at 5:22 PM, Ken Giusti wrote: > When console.py connects to a broker (via addBroker), it will attempt to > query for the existence of the qmf.default.direct and qmf.default.topic > exchanges. If that query succeeds, the console marks that broker as being > V2 capable, and use

Re: Questions from a novice

2013-04-02 Thread Ken Giusti
the Broker::_tryToConnect() method in console.py for all the gory details. -K - Original Message - > From: "Fraser Adams" > To: users@qpid.apache.org > Cc: users@qpid.apache.org > Sent: Tuesday, April 2, 2013 2:01:52 PM > Subject: Re: Questions from a novic

Re: Questions from a novice

2013-04-02 Thread Bill Freeman
Fraser On Tue, Apr 2, 2013 at 1:48 PM, Fraser Adams wrote: > > > I found this (https://cwiki.apache.org/qpid/qmfv2-project-page.html). I > > probably didn't go here the first time around because the link to it on > > https://cwiki.apache.org/qpid/qpid-management-framework.html says that > it >

Re: Questions from a novice

2013-04-02 Thread Fraser Adams
quirrelly and > loaded with special cases in order to support both qmf versions. > > -K > > - Original Message - >> From: "Fraser Adams" >> To: users@qpid.apache.org >> Cc: users@qpid.apache.org >> Sent: Tuesday, April 2, 2013 3:52:44 AM >

Re: Questions from a novice

2013-04-02 Thread Fraser Adams
> WebSockets in the browser is event based. You register a callback for a > new message. You send a message either because the user clicked something, > or because a timeout expired. So threads aren't forced by WS. Yeah I realise that, my point was that with the AJAX/REST approach everything w

Re: Questions from a novice

2013-04-02 Thread Ken Giusti
t, we could probably simplify the console.py code quite a bit. I find it's current form a bit squirrelly and loaded with special cases in order to support both qmf versions. -K - Original Message - > From: "Fraser Adams" > To: users@qpid.apache.org > Cc: users@q

Re: Questions from a novice

2013-04-02 Thread Ken Giusti
- Original Message - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Monday, April 1, 2013 7:50:16 PM > Subject: Re: Questions from a novice > > Ken, > > > On Mon, Apr 1, 2013 at 5:58 PM, Ken Giusti wrote: > > > > That sou

Re: Questions from a novice

2013-04-02 Thread Bill Freeman
On Tue, Apr 2, 2013 at 4:31 AM, Fraser Adams wrote: > > > On 1 Apr 2013, at 22:15, Bill Freeman wrote: > > > > I realize that the final numbers come out the same. But this is to be an > > interactive tool, used by people who are panicking because some queue > seems > > wedged. So if they comman

Re: Questions from a novice

2013-04-02 Thread Fraser Adams
On 1 Apr 2013, at 22:15, Bill Freeman wrote: > > I realize that the final numbers come out the same. But this is to be an > interactive tool, used by people who are panicking because some queue seems > wedged. So if they command a change, I'd really like to show them a > result. Within 10 se

Re: Questions from a novice

2013-04-02 Thread Fraser Adams
On 1 Apr 2013, at 21:31, Ken Giusti wrote: > Hi Bill, > > I've just tried to restrict my broker to using only qmf v2: > > $ qpidd --auth no --mgmt-qmf1 no > > and I no longer get update notifications from my console.py app! From the > looks of it, the console.py code is broken - the broke

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
Ken, On Mon, Apr 1, 2013 at 5:58 PM, Ken Giusti wrote: > > That sounds delux, since they would probably even survive moving a broker > > from one server to another (with a different IP address. > > Whoa, moving a broker won't guarantee the fed-tag would be the same :( > > You see, the fed-tag i

Re: Questions from a novice

2013-04-01 Thread Ken Giusti
e - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Monday, April 1, 2013 5:21:46 PM > Subject: Re: Questions from a novice > > Ken, > > > On Mon, Apr 1, 2013 at 4:31 PM, Ken Giusti wrote: > > > > > 2) uniquely identifying ob

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
Ken, On Mon, Apr 1, 2013 at 4:31 PM, Ken Giusti wrote: > > 2) uniquely identifying objects across multiple brokers. Yes, Gordon's > correct, object names are usually only guaranteed to be unique within a > broker, not across them. Partitioning them by IP address + port could > work, as would

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
Fraser, Thanks again. There are a few comments interspersed below, but no reply is required. On Mon, Apr 1, 2013 at 3:48 PM, Fraser Adams wrote: > > > On 1 Apr 2013, at 19:56, Bill Freeman wrote: > > > > > > > I believe that I fall into the data push camp, even though I may not be > > using t

Re: Questions from a novice

2013-04-01 Thread Ken Giusti
e federation tag from the vhost object. - Original Message - > From: "Bill Freeman" > To: users@qpid.apache.org > Sent: Monday, April 1, 2013 1:35:54 PM > Subject: Re: Questions from a novice > > On Mon, Apr 1, 2013 at 12:21 PM, Gordon Sim wrote: > > >

Re: Questions from a novice

2013-04-01 Thread Fraser Adams
On 1 Apr 2013, at 19:56, Bill Freeman wrote: > > > I believe that I fall into the data push camp, even though I may not be > using the modern means of achieving it. I create my qmf.console.Session > instance with rcvObjects = True. Then, after an initial one copy of > everything, I'm only s

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
Fraser, See below, time permitting. On Mon, Apr 1, 2013 at 2:12 PM, Fraser Adams wrote: > Firstly to say that I'm currently on holiday under a qpid curfew :-) so I > can only sneak in a quick response at the moment, I'll try to give some > proper answers to questions posed in this thread later o

Re: Questions from a novice

2013-04-01 Thread Fraser Adams
Firstly to say that I'm currently on holiday under a qpid curfew :-) so I can only sneak in a quick response at the moment, I'll try to give some proper answers to questions posed in this thread later on in the week. On Gordon's --mgmt-qmf1=false I "thought" those broker flags only actually rel

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
On Mon, Apr 1, 2013 at 12:21 PM, Gordon Sim wrote: > On 04/01/2013 05:06 PM, Bill Freeman wrote: > >> since I have a dog and pony show coming up shortly, do you >> know how to get the existing qmf.console stuff to send my updates as V2 >> (session has rcvObjects True). >> > > One option might be

Re: Questions from a novice

2013-04-01 Thread Gordon Sim
On 04/01/2013 05:06 PM, Bill Freeman wrote: since I have a dog and pony show coming up shortly, do you know how to get the existing qmf.console stuff to send my updates as V2 (session has rcvObjects True). One option might be to turn v1 off at the broker... --mgmt-qmf1=false to qpidd. I don't

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
Ken, Please forgive me if I say "browser" anywhere in here. I mean "broker" but "browser" seems to fall out of my fingers in the heat of typing. On Mon, Apr 1, 2013 at 11:36 AM, Ken Giusti wrote: > Hi Bill (and Gordon) - sorry about not chiming in a bit earlier with this. > > Bill - though yo

Re: Questions from a novice

2013-04-01 Thread Gordon Sim
On 04/01/2013 04:37 PM, Bill Freeman wrote: On Mon, Apr 1, 2013 at 10:32 AM, Gordon Sim wrote: There is a much simpler, more basic library available for v2 available as well: https://svn.apache.org/repos/**asf/qpid/trunk/qpid/tools/src/** py/qpidtoollibs/broker.py

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
On Mon, Apr 1, 2013 at 10:32 AM, Gordon Sim wrote: > On 04/01/2013 02:12 PM, Bill Freeman wrote: > >> On Mon, Apr 1, 2013 at 8:24 AM, Bill Freeman wrote: >> >> >>> >>> >>> On Mon, Apr 1, 2013 at 5:03 AM, Gordon Sim wrote: >>> >>> On 03/29/2013 04:35 PM, Bill Freeman wrote:That console API is a

Re: Questions from a novice

2013-04-01 Thread Ken Giusti
ee the qpid/tools/src/py directory in the repo. You can use qpid-config as an example. -K ----- Original Message - > From: "Gordon Sim" > To: users@qpid.apache.org > Sent: Monday, April 1, 2013 10:32:43 AM > Subject: Re: Questions from a novice > > On 04/01/2

Re: Questions from a novice

2013-04-01 Thread Gordon Sim
On 04/01/2013 02:12 PM, Bill Freeman wrote: On Mon, Apr 1, 2013 at 8:24 AM, Bill Freeman wrote: On Mon, Apr 1, 2013 at 5:03 AM, Gordon Sim wrote: On 03/29/2013 04:35 PM, Bill Freeman wrote:That console API is a bit of a mixture of QMFv1 and QMFv2. I think there is a getObjectId() method,

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
On Mon, Apr 1, 2013 at 8:24 AM, Bill Freeman wrote: > > > > On Mon, Apr 1, 2013 at 5:03 AM, Gordon Sim wrote: > >> On 03/29/2013 04:35 PM, Bill Freeman wrote:That console API is a bit of a >> mixture of QMFv1 and QMFv2. I think there is a getObjectId() method, and >> you can then call asMap() on

Re: Questions from a novice

2013-04-01 Thread Bill Freeman
On Mon, Apr 1, 2013 at 5:03 AM, Gordon Sim wrote: > On 03/29/2013 04:35 PM, Bill Freeman wrote:That console API is a bit of a > mixture of QMFv1 and QMFv2. I think there is a getObjectId() method, and > you can then call asMap() on that to get the v2 form. > Thanks. I'll have a read of the meth

Re: Questions from a novice

2013-04-01 Thread Gordon Sim
On 03/29/2013 04:35 PM, Bill Freeman wrote: I'm actually using RH MRG, but that seems to be little different from upstream Qpid. I'm certainly seeing v2 qmf queues mentioned in the broker __dict__. Please say if I'm making unwarranted assumptions here. I wanted my code to be as generic as poss

Re: Questions from a novice

2013-03-29 Thread Bill Freeman
On Fri, Mar 29, 2013 at 9:29 AM, Gordon Sim wrote: > On 03/28/2013 08:52 PM, Bill Freeman wrote: > >> So it occurs to me to ask whether the correspondence between named queue >> and object id survives broker restarts? >> > > I believe with QMFv2 and qpidd, the object identifiers for queues are >

Re: Questions from a novice

2013-03-29 Thread Gordon Sim
On 03/28/2013 08:52 PM, Bill Freeman wrote: So it occurs to me to ask whether the correspondence between named queue and object id survives broker restarts? I believe with QMFv2 and qpidd, the object identifiers for queues are formed from the package, the class and the queue's name. So althoug

Re: Questions from a novice

2013-03-28 Thread Bill Freeman
---Part 2 On Tue, Mar 26, 2013 at 1:39 PM, Gordon Sim wrote: > On 03/26/2013 04:12 PM, Bill Freeman wrote: > >> 4. If necessary, I'm thinking of disambiguating object IDs across browsers >> by decorating (the string representing) the object ID with (a string >> representing) the broker IP addres

Re: Questions from a novice

2013-03-26 Thread Robbie Gemmell
On 26 March 2013 17:39, Gordon Sim wrote: > On 03/26/2013 04:12 PM, Bill Freeman wrote: > >> Qpid brokers speak AMQP on the wire. Excluding command line arguments, >> config files, stuff in the data directory, and possibly *nix signals, >> brokers don't communicate in any way but AMQP. Specific

Re: Questions from a novice

2013-03-26 Thread Bill Freeman
Many thanks - Bill On Tue, Mar 26, 2013 at 1:39 PM, Gordon Sim wrote: > On 03/26/2013 04:12 PM, Bill Freeman wrote: > >> Qpid brokers speak AMQP on the wire. Excluding command line arguments, >> config files, stuff in the data directory, and possibly *nix signals, >> brokers don't communicate i

Re: Questions from a novice

2013-03-26 Thread Gordon Sim
On 03/26/2013 04:12 PM, Bill Freeman wrote: Qpid brokers speak AMQP on the wire. Excluding command line arguments, config files, stuff in the data directory, and possibly *nix signals, brokers don't communicate in any way but AMQP. Specifically, there is no separate port, and no recognizably no

Questions from a novice

2013-03-26 Thread Bill Freeman
Please pardon me if my questions are all clearly answered in the documentation. I've been reading for a while, and am still in doubt. While I have done C++ and Java programming in the past, I have a lot more experience in C, and I've mostly been a Python programmer of late. So also please excuse