Hi,
Thanks for your quick responses.
On class specific bindin that Daniel mentioned: That’s what I thought too. But I
believe right now we cant do something like "from <module> import
<function>" since both virNodeGetCPUStats and virDomainGetCPUStats are in the
same module.
Is there a workaround for this without having to touch libvirt (for a client that can
collect stats from multiple hosts?
Can I use Sys-virt perl module instead? Will I be able to access all the performance
counters that can be accessed from the python binding? Are the perl bindings installed by
default or do we need to download it and install it? (if we need to download then python
would be preferred as binding is installed by default for a specific version.
Which binding is most recommended for collecting performance counters? Is there a list
of performance counters that can be collected
Regards,
Harsha
-----Original Message-----
From: Daniel P. Berrange [mailto:berrange@redhat.com]
Sent: Tuesday, September 18, 2012 5:03 PM
To: Daniel Veillard
Cc: Buggi, Harsha; libvir-list(a)redhat.com; libvirt-users(a)redhat.com
Subject: Re: [libvirt-users] virNodeGetCPUStats and virDomainGetCPUStats have same name in
pyton binding as getCPUStats
On Tue, Sep 18, 2012 at 07:28:44PM +0800, Daniel Veillard wrote:
On Tue, Sep 18, 2012 at 10:56:55AM +0000, Buggi, Harsha wrote:
> Hi,
>
> virNodeGetCPUStats and virDomainGetCPUStats have same name in pyton binding as
getCPUStats
>
> virDomainGetCPUStats gets called internally when we use the method getCPUStats. How
do we access virNodeGetCPUStats?
Ouch we need to fix the generator to have domainGetCPUStats !!
Err, no we don't. The getCPUStats() binding to virNodeGetCPUStats() is
done against the virConnect class, while the getCPUStats() binding
to virDomainGetCPUStats() is done against the virDomain class. The names
only need to be unique within the scope of the class, not the entire
module
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|