[libvirt] [PATCH 1/2] Java bindings for domain events

David Lively dlively at virtualiron.com
Tue Nov 18 16:06:10 UTC 2008


The attached patch (against libvirt-java) implements Java bindings for
libvirt domain events.  This version provides a libvirt EventImpl
running in its own Java Thread, and provides per-Connect synchronization
that makes using the bindings thread-safe.  (Note the Domain, Network,
StoragePool, and StorageVol methods also synchronize on their Connect
object, as required by libvirt.  I have similar changes for
NodeDevice.java that need to be made when that code is checked in.)

This version of the patch also implements and uses an enum class
(DomainEvent.Type), as suggested by Tóth István.

IMPORTANT: THIS PATCH WILL BREAK THINGS UNLESS THE NEXT [PATCH 2/2] IS
APPLIED TO libvirt FIRST.  Also, libvirt must be compiled WITH_PTHREADS
for Java events to work.

Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: java-events.patch
Type: text/x-patch
Size: 66950 bytes
Desc: 
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081118/28c90d83/attachment-0001.bin>


More information about the libvir-list mailing list