[libvirt] [libvirt-java] [PATCH 65/65] Deprecate Connect.getHypervisorVersion

Claudio Bley cbley at av-test.de
Thu Feb 13 15:23:13 UTC 2014


In libvirt 0.9.3 this has been changed to simply return the libvirt
version number.

Signed-off-by: Claudio Bley <cbley at av-test.de>
---
 src/main/java/org/libvirt/Connect.java |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/libvirt/Connect.java b/src/main/java/org/libvirt/Connect.java
index e909b29..a88abc1 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
@@ -1005,13 +1005,18 @@ public class Connect {
 
     /**
      * Returns the version of the hypervisor against which the library was
-     * compiled. The type parameter specified which hypervisor's version is
-     * returned
+     * compiled.
      *
-     * @param type
+     * Since libvirt 0.9.3 this simply returns the same version number
+     * as {@link Library#getVersion}.
+     * @param type The type of connection/driver to look at. See
+     *             {@link #getType()}. May be {@code null}.
      * @return major * 1,000,000 + minor * 1,000 + release
      * @throws LibvirtException
+     * @deprecated To get the version of the running hypervisor use
+     *             {@link #getVersion()} instead.
      */
+    @Deprecated
     public long getHypervisorVersion(String type) throws LibvirtException {
         LongByReference libVer = new LongByReference();
         LongByReference typeVer = new LongByReference();
-- 
1.7.9.5




More information about the libvir-list mailing list