[libvirt-java] [PATCH 0/3] Make the Java wrapper more fun to use

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

 



This patchset first implements the ByteChannel interface for the Stream
class which makes it readily usable with any standard Java library.

Note, that this changes the wrapping of the virStreamRecv and virStreamSend
function of the jna.Libvirt interface (which also makes this more efficient
because a ByteBuffer is used instead of an Array). However, this interface
should not be considered part of the public interface of the library, as with
all classes part of the org.libvirt.jna package.

In order to put this new functionality to use, the virDomainScreenshot
function is wrapped and a unit test added to exercise it a bit.

Claudio Bley (3):
  Implement interface ByteChannel for Stream class
  Domain: add screenshot method
  test: add testDomainScreenshot JUnit test

 src/main/java/org/libvirt/Domain.java           |  11 ++
 src/main/java/org/libvirt/Stream.java           | 175 +++++++++++++++++++++++-
 src/main/java/org/libvirt/jna/Libvirt.java      |   7 +-
 src/test/java/org/libvirt/TestJavaBindings.java |  38 +++++
 4 files changed, 226 insertions(+), 5 deletions(-)

-- 
1.8.5.2.msysgit.0

--
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]

  Powered by Linux