add getWhoList method

This commit is contained in:
Doug MacEachern committed 2005-02-22 01:51:51 +00:00
1 parent bd2ef09744
commit 921a20182d
3 files changed
+11

No files matched your search

@@ -598,6 +598,9 @@ public class Sigar implements SigarProxy {
public native NetConnection[] getNetConnectionList(int flags)
throws SigarException;
public native Who[] getWhoList()
throws SigarException;
/**
* Get network interface configuration info.
* @exception SigarException on failure.
@@ -119,5 +119,7 @@ public interface SigarProxy {
public String[] getNetInterfaceList() throws SigarException;
public Who[] getWhoList() throws SigarException;
public String getFQDN() throws SigarException;
}
@@ -329,6 +329,12 @@ public class SynchronizedSigar implements SigarProxy {
return this.sigar.getNetInterfaceList();
}
public synchronized Who[] getWhoList()
throws SigarException
{
return this.sigar.getWhoList();
}
public synchronized String getFQDN()
throws SigarException
{