Class WindowsNetworkIfJNA
java.lang.Object
oshi.hardware.common.AbstractNetworkIF
oshi.hardware.platform.windows.WindowsNetworkIfJNA
- All Implemented Interfaces:
oshi.hardware.NetworkIF
@ThreadSafe
public final class WindowsNetworkIfJNA
extends oshi.hardware.common.AbstractNetworkIF
WindowsNetworks class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.hardware.NetworkIF
oshi.hardware.NetworkIF.IfOperStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongoshi.hardware.NetworkIF.IfOperStatusintlonglongintstatic List<oshi.hardware.NetworkIF> getNetworks(boolean includeLocalInterfaces) Gets all network interfaces on this machinelonglonglonglonggetSpeed()longbooleanbooleanMethods inherited from class oshi.hardware.common.AbstractNetworkIF
getDisplayName, getIndex, getIPv4addr, getIPv6addr, getMacaddr, getMTU, getName, getNetworkInterfaces, getPrefixLengths, getSubnetMasks, isKnownVmMacAddr, queryNetworkInterface, toString
-
Constructor Details
-
WindowsNetworkIfJNA
- 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
-
getIfType
public int getIfType() -
getNdisPhysicalMediumType
public int getNdisPhysicalMediumType() -
isConnectorPresent
public boolean isConnectorPresent() -
getBytesRecv
public long getBytesRecv() -
getBytesSent
public long getBytesSent() -
getPacketsRecv
public long getPacketsRecv() -
getPacketsSent
public long getPacketsSent() -
getInErrors
public long getInErrors() -
getOutErrors
public long getOutErrors() -
getInDrops
public long getInDrops() -
getCollisions
public long getCollisions() -
getSpeed
public long getSpeed() -
getTimeStamp
public long getTimeStamp() -
getIfAlias
-
getIfOperStatus
public oshi.hardware.NetworkIF.IfOperStatus getIfOperStatus() -
updateAttributes
public boolean updateAttributes()
-