[Ovirt-devel] Ovirt QMF API Proposal
Ian Main
imain at redhat.com
Wed Apr 1 23:03:26 UTC 2009
On Wed, 01 Apr 2009 09:59:54 -0400
Bryan Kearney <bkearney at redhat.com> wrote:
> Ian Main wrote:
> >
> > # Look up completed tasks.
> > tasks = s.objects(:class => 'Task', 'completed' => true)
>
> How does this work on the backend? Are all Tasks instantiated and
> managed by the agent, or does this turn into a method call to get he
> managed objects?
>
All tasks are instantiated and managed by the agent as you say.
When you do a query like this QMF uses AMQP to send a message to all
agents requesting that each agent return all object IDs for objects that
match the given criteria.
The criteria at this point are all just AND'd together. However hopefully
we will have more powerful search ability soonish.. things like OR's and
regular expressions etc.
Ian
More information about the ovirt-devel
mailing list