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.
  • 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
    • 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

      public String getIfAlias()
    • getIfOperStatus

      public oshi.hardware.NetworkIF.IfOperStatus getIfOperStatus()
    • updateAttributes

      public boolean updateAttributes()