From 96ca3970e1d7506715f46eacb9ef5b330ead7182 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 29 Apr 2009 10:51:55 -0700 Subject: [PATCH] add SigarVersion getter --- bindings/java/src/org/hyperic/sigar/Sigar.java | 4 ++++ bindings/java/src/org/hyperic/sigar/SigarProxy.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/bindings/java/src/org/hyperic/sigar/Sigar.java b/bindings/java/src/org/hyperic/sigar/Sigar.java index c927bb15..a83914d2 100644 --- a/bindings/java/src/org/hyperic/sigar/Sigar.java +++ b/bindings/java/src/org/hyperic/sigar/Sigar.java @@ -959,6 +959,10 @@ public class Sigar implements SigarProxy { */ public native String getFQDN() throws SigarException; + public SigarVersion getSigarVersion() { + return new SigarVersion(); + } + /** * Enabling logging in the native Sigar code. * This method will hook log4j into the Sigar diff --git a/bindings/java/src/org/hyperic/sigar/SigarProxy.java b/bindings/java/src/org/hyperic/sigar/SigarProxy.java index 5f4ea007..ae23a915 100644 --- a/bindings/java/src/org/hyperic/sigar/SigarProxy.java +++ b/bindings/java/src/org/hyperic/sigar/SigarProxy.java @@ -172,5 +172,7 @@ public interface SigarProxy { public NetInfo getNetInfo() throws SigarException; + public SigarVersion getSigarVersion(); + public String getFQDN() throws SigarException; }