Package oshi.hardware.platform.mac
Class MacNetworks
java.lang.Object
oshi.hardware.common.AbstractNetworks
oshi.hardware.platform.mac.MacNetworks
- All Implemented Interfaces:
Networks
public class MacNetworks extends AbstractNetworks
MacNetworks class.
-
Constructor Summary
Constructors Constructor Description MacNetworks() -
Method Summary
Modifier and Type Method Description NetworkIF[]getNetworks()Get network interfaces on this machinestatic booleanupdateNetworkStats(NetworkIF netIF)Updates interface network statistics on the given interface.
-
Constructor Details
-
MacNetworks
public MacNetworks()
-
-
Method Details
-
getNetworks
Description copied from interface:NetworksGet network interfaces on this machine- Specified by:
getNetworksin interfaceNetworks- Overrides:
getNetworksin classAbstractNetworks- Returns:
- Array of
NetworkIFobjects
-
updateNetworkStats
Updates interface network statistics on the given interface. Statistics include packets and bytes sent and received, and interface speed.- Parameters:
netIF- The interface on which to update statistics
-