Class AixInternetProtocolStats
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
oshi.software.common.os.unix.aix.AixInternetProtocolStats
- All Implemented Interfaces:
InternetProtocolStats
Abstract base for AIX InternetProtocolStats. Both backends iterate
perfstat_protocol_t and surface the TCP
and UDP variants; the shared decoding lives here, the per-backend data fetch in concrete subclasses.-
Nested Class Summary
Nested classes/interfaces inherited from interface InternetProtocolStats
InternetProtocolStats.IPConnection, InternetProtocolStats.TcpState, InternetProtocolStats.TcpStats, InternetProtocolStats.UdpStatsModifier and TypeInterfaceDescriptionstatic final classEncapsulates information associated with an IP connection.static enumThe TCP connection state as described in RFC 793.static final classEncapsulates statistics associated with a TCP connection.static final classEncapsulates statistics associated with a UDP connection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the TCP stats for IPv4 connections.Get the UDP stats for IPv4 datagrams.protected abstract InternetProtocolStats.TcpStatsReturns the TCP stats from the subclass's perfstat data source.protected abstract InternetProtocolStats.UdpStatsReturns the UDP stats from the subclass's perfstat data source.Methods inherited from class AbstractInternetProtocolStats
getConnections, getTCPv6Stats, getUDPv6StatsModifier and TypeMethodDescriptionGets a list of TCP and UDP connections.Get the TCP stats for IPv6 connections, if available.Get the UDP stats for IPv6 datagrams, if available.
-
Constructor Details
-
AixInternetProtocolStats
public AixInternetProtocolStats()
-
-
Method Details
-
getTCPv4Stats
Description copied from interface:InternetProtocolStatsGet the TCP stats for IPv4 connections.On macOS connection information requires elevated permissions. Without elevated permissions, segment data is estimated.
- Returns:
- a
InternetProtocolStats.TcpStatsobject encapsulating the stats.
-
getUDPv4Stats
Description copied from interface:InternetProtocolStatsGet the UDP stats for IPv4 datagrams.- Returns:
- a
InternetProtocolStats.UdpStatsobject encapsulating the stats.
-
queryTcpStats
Returns the TCP stats from the subclass's perfstat data source.- Returns:
- populated
InternetProtocolStats.TcpStats, ornullif thetcpentry was not found
-
queryUdpStats
Returns the UDP stats from the subclass's perfstat data source.- Returns:
- populated
InternetProtocolStats.UdpStats, ornullif theudpentry was not found
-