On Sat, May 7, 2011 at 10:02 PM, Adam Stokes adam.stokes@gmail.com wrote:
here is a good bindings example:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qmf2/python/qmf2.p...
In the agent proxy class is where the querying happens
But in this example there is no querying. Just stuff like:
161 if event.getType() == cqmf2.CONSOLE_AGENT_ADD: 162 self.agentAdded(Agent(event.getAgent())) 163
which is more in line with what I'd expect from the C++ API too.
which is essentially what ive done in order to be able to interact with the agent that raised the event.
( adam stokes ) || ( adam.stokes@gmail.com )
On Sat, May 7, 2011 at 2:48 PM, Russell Bryant russell@russellbryant.net wrote:
On Sat, May 7, 2011 at 10:50 AM, Adam Stokes adam.stokes@gmail.com wrote:
Have you been able to access the agent methods from the event raised? Ive been trying to figure out how to do it without going through the query
Nope. I haven't done anything more than getting a connection up to the broker, and printing a message when an agent comes and goes, and when an event is received. It's not doing any filtering, either. I used it to see events coming back from a status change after using the status method on the Services agent and that seemed to work. I'll keep playing around with it later, though, and let you know if I learn anything I think you might find helpful.
For reference, here is a more live link to the code than the original list post:
https://github.com/russellb/matahari/blob/pyeventmon/src/utils/qmfeventmon.p...
-- Russell Bryant
Matahari mailing list Matahari@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/matahari