Class LinuxNetworkIFJNA

java.lang.Object
oshi.hardware.common.AbstractNetworkIF
oshi.hardware.common.platform.linux.LinuxNetworkIF
oshi.hardware.platform.linux.LinuxNetworkIFJNA
All Implemented Interfaces:
oshi.hardware.NetworkIF

@ThreadSafe public final class LinuxNetworkIFJNA extends oshi.hardware.common.platform.linux.LinuxNetworkIF
JNA-based Linux network interface implementation.
  • Nested Class Summary

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

    oshi.hardware.NetworkIF.IfOperStatus
  • Method Summary

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

    Methods inherited from class oshi.hardware.common.platform.linux.LinuxNetworkIF

    getBytesRecv, getBytesSent, getCollisions, getIfAlias, getIfOperStatus, getIfType, getInDrops, getInErrors, getOutErrors, getPacketsRecv, getPacketsSent, getSpeed, getTimeStamp, isConnectorPresent, parseIfOperStatus, queryIfModelFromSysfs, updateAttributes

    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

    getNdisPhysicalMediumType
  • Method Details

    • getNetworks

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