Class LinuxNetworks

java.lang.Object
oshi.hardware.common.Networks
oshi.hardware.platform.linux.LinuxNetworks

@ThreadSafe
public final class LinuxNetworks
extends Networks
LinuxNetworks class.
  • Constructor Summary

    Constructors 
    Constructor Description
    LinuxNetworks()  
  • Method Summary

    Modifier and Type Method Description
    static boolean updateNetworkStats​(NetworkIF netIF)
    Updates interface network statistics on the given interface.

    Methods inherited from class oshi.hardware.common.Networks

    getNetworkInterfaces, getNetworks

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • updateNetworkStats

      public static boolean updateNetworkStats​(NetworkIF netIF)
      Updates interface network statistics on the given interface. Statistics include packets and bytes sent and received, and interface speed.
      Parameters:
      netIF - The interface on which to update statistics
      Returns:
      true if the update was successful, false otherwise.