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 -
Method Summary
Modifier and TypeMethodDescriptionstatic List<oshi.hardware.NetworkIF> getNetworks(boolean includeLocalInterfaces) Gets all network interfaces on this machinebooleanMethods 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, setTimeStampMethods 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
getIfAlias, getIfOperStatus, getNdisPhysicalMediumType, isConnectorPresent
-
Constructor Details
-
MacNetworkIfJNA
public MacNetworkIfJNA(NetworkInterface netint, Map<Integer, NetStat.IFdata> data) throws InstantiationException - Throws:
InstantiationException
-
-
Method Details
-
getNetworks
Gets all network interfaces on this machine- Parameters:
includeLocalInterfaces- include local interfaces in the result- Returns:
- A list of
NetworkIFobjects representing the interfaces
-
updateAttributes
public boolean updateAttributes()
-