Package oshi.driver.mac.net
Class NetStat
java.lang.Object
oshi.driver.mac.net.NetStat
Utility to query NetStat.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class to encapsulate IF data for method return -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Integer,
NetStat.IFdata> queryIFdata
(int index) Map data for network interfaces.
-
Method Details
-
queryIFdata
Map data for network interfaces.- Parameters:
index
- If positive, limit the map to only return data for this interface index. If negative, returns data for all indices.- Returns:
- a map of
NetStat.IFdata
object indexed by the interface index, encapsulating the stats
-