Class NetStat

java.lang.Object
oshi.driver.mac.net.NetStat

@ThreadSafe public final class NetStat extends Object
Utility to query NetStat.
  • Method Details

    • queryIFdata

      public static Map<Integer,NetStat.IFdata> queryIFdata(int index)
      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