add SigarVersion getter

This commit is contained in:
Doug MacEachern 2009-04-29 10:51:55 -07:00
parent a84788f1a0
commit 96ca3970e1
2 changed files with 6 additions and 0 deletions

View File

@ -959,6 +959,10 @@ public class Sigar implements SigarProxy {
*/ */
public native String getFQDN() throws SigarException; public native String getFQDN() throws SigarException;
public SigarVersion getSigarVersion() {
return new SigarVersion();
}
/** /**
* Enabling logging in the native Sigar code. * Enabling logging in the native Sigar code.
* This method will hook log4j into the Sigar * This method will hook log4j into the Sigar

View File

@ -172,5 +172,7 @@ public interface SigarProxy {
public NetInfo getNetInfo() throws SigarException; public NetInfo getNetInfo() throws SigarException;
public SigarVersion getSigarVersion();
public String getFQDN() throws SigarException; public String getFQDN() throws SigarException;
} }