Re: [libvirt] [java] [PATCH] GetNodeCpuStat binding

2014-04-15 Thread Pasquale Dir
Working for the other corrections but I disegree with these ones: 1. This is an unsigned long long in C, so it must be a long, not NativeLong here. 2. flags is an unsigned int in C, so it must be an int in Java As in java types are signed I'd avoid to allocate the exact same memory, on the

Re: [libvirt] [java] [PATCH] GetNodeCpuStat binding

2014-04-15 Thread Pasquale Dir
That is if we would need to read/process these values too instead of just using them. 2014-04-15 10:36 GMT+02:00 Pasquale Dir phate...@gmail.com: Working for the other corrections but I disegree with these ones: 1. This is an unsigned long long in C, so it must be a long, not NativeLong

Re: [libvirt] More java bindings functions

2014-03-21 Thread Pasquale Dir
...if I send you a .rar with the sources would it be ok? 2014-03-17 13:43 GMT+01:00 Eric Blake ebl...@redhat.com: On 03/17/2014 01:46 AM, Claudio Bley wrote: At Sun, 16 Mar 2014 20:07:48 +0100, Pasquale Dir wrote: I just added, because I needed them, two new bindings for java apis

[libvirt] More java bindings functions

2014-03-16 Thread Pasquale Dir
Hello, I just added, because I needed them, two new bindings for java apis: Connection.getCpuStats(int, long) and Domain.getCpuStats(int, long) these two functions act like python's counterpart. I give you the .jar with sources so that, after you review it (it works but I am not entirely sure

[libvirt] Is it possible to set a timeout to the Connection class?

2014-02-18 Thread Pasquale Dir
I am using the java api bindings. I'd like to set a connection timeout on the Connect class as sometimes it takes just too long. Is there any way/workaround? -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list