Re: [libvirt] Monitoring VMs via java application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 23, 2009 at 01:33:06PM +0100, Daniel Halle wrote:
> 
> Hello all,
> 
> I want to monitor my VMs with a Java application.
> Is there a possibility to register an observer or the like which is 
> triggered e.g. after the state of a VM has changed?
> Or is the only way to use a timer which polls all VMs every xy minutes?

The C library has an API which allows you to register a callback to
received asynchronous events upon domain state changes. I remember
that there was some work to expose this in Java, but I think it got
blocked on work to make the library fully thread safe. So there may
still be a little more work required in the Java  binding. There
underlying capability definitely exists though, so if you're at all
familiar with Java JNI you ought to be able to get something working.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]