Package oshi.driver.mac.net
Class NetStat
java.lang.Object
oshi.driver.mac.net.NetStat
@ThreadSafe public final class NetStat extends java.lang.Object
Utility to query NetStat.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetStat.IFdata
Class to encapsulate IF data for method return -
Method Summary
Modifier and Type Method Description static java.util.Map<java.lang.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
-