Class AixNetworkIF

java.lang.Object
oshi.hardware.common.AbstractNetworkIF
oshi.hardware.common.platform.unix.aix.AixNetworkIF
All Implemented Interfaces:
NetworkIF

@ThreadSafe public abstract class AixNetworkIF extends AbstractNetworkIF
Abstract base for AIX NetworkIF. updateAttributes() populates fields from a per-interface stats POJO that subclasses fetch from their respective perfstat driver.
  • Constructor Details

  • Method Details

    • updateAttributes

      public boolean updateAttributes()
      Description copied from interface: NetworkIF
      Updates interface network statistics on this interface. Statistics include packets and bytes sent and received, and interface speed.

      This method is intended for updating a single interface that is being individually monitored. If you are updating multiple interfaces, it is more efficient to re-query the entire list from HardwareAbstractionLayer.getNetworkIFs() and correlate the results, since on many platforms the full list must be queried to provide any individual result.

      Returns:
      true if the update was successful, false otherwise.
    • queryStats

      protected abstract AixNetworkIF.IfStats queryStats()
      Looks up this interface's per-interface stats from the subclass's perfstat data source.
      Returns:
      stats POJO, or null if no entry was found for this interface name