Class MacNetworkIfJNA

java.lang.Object
oshi.hardware.common.AbstractNetworkIF
oshi.hardware.common.platform.mac.MacNetworkIF
oshi.hardware.platform.mac.MacNetworkIfJNA
All Implemented Interfaces:
oshi.hardware.NetworkIF

@ThreadSafe public final class MacNetworkIfJNA extends oshi.hardware.common.platform.mac.MacNetworkIF
MacNetworks JNA implementation.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface oshi.hardware.NetworkIF

    oshi.hardware.NetworkIF.IfOperStatus
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.NetworkIF>
    getNetworks(boolean includeLocalInterfaces)
    Gets all network interfaces on this machine
    boolean
     

    Methods inherited from class oshi.hardware.common.platform.mac.MacNetworkIF

    getBytesRecv, getBytesSent, getCollisions, getIfType, getInDrops, getInErrors, getOutErrors, getPacketsRecv, getPacketsSent, getSpeed, getTimeStamp, setBytesRecv, setBytesSent, setCollisions, setIfType, setInDrops, setInErrors, setOutErrors, setPacketsRecv, setPacketsSent, setSpeed, setTimeStamp

    Methods inherited from class oshi.hardware.common.AbstractNetworkIF

    getDisplayName, getIndex, getIPv4addr, getIPv6addr, getMacaddr, getMTU, getName, getNetworkInterfaces, getPrefixLengths, getSubnetMasks, isKnownVmMacAddr, queryNetworkInterface, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface oshi.hardware.NetworkIF

    getIfAlias, getIfOperStatus, getNdisPhysicalMediumType, isConnectorPresent
  • Constructor Details

  • Method Details

    • getNetworks

      public static List<oshi.hardware.NetworkIF> getNetworks(boolean includeLocalInterfaces)
      Gets all network interfaces on this machine
      Parameters:
      includeLocalInterfaces - include local interfaces in the result
      Returns:
      A list of NetworkIF objects representing the interfaces
    • updateAttributes

      public boolean updateAttributes()