add getWhoList method
This commit is contained in:
parent
bd2ef09744
commit
921a20182d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue