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 TypeMethodDescriptionstatic List<oshi.hardware.NetworkIF> getNetworks(boolean includeLocalInterfaces) Gets network interfaces on this machineMethods 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, updateAttributesMethods inherited from class oshi.hardware.common.AbstractNetworkIF
getDisplayName, getIndex, getIPv4addr, getIPv6addr, getMacaddr, getMTU, getName, getNetworkInterfaces, getPrefixLengths, getSubnetMasks, isKnownVmMacAddr, queryNetworkInterface, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.hardware.NetworkIF
getNdisPhysicalMediumType
-
Method Details
-
getNetworks
Gets network interfaces on this machine- Parameters:
includeLocalInterfaces- include local interfaces in the result- Returns:
- A list of
NetworkIFobjects representing the interfaces
-