add getWhoList method

This commit is contained in:
Doug MacEachern 2005-02-22 01:51:51 +00:00
parent bd2ef09744
commit 921a20182d
3 changed files with 11 additions and 0 deletions

View File

@ -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.

View File

@ -119,5 +119,7 @@ public interface SigarProxy {
public String[] getNetInterfaceList() throws SigarException;
public Who[] getWhoList() throws SigarException;
public String getFQDN() throws SigarException;
}

View File

@ -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
{