Class AbstractInternetProtocolStats
java.lang.Object
oshi.software.common.AbstractInternetProtocolStats
- All Implemented Interfaces:
InternetProtocolStats
- Direct Known Subclasses:
AixInternetProtocolStats, FreeBsdInternetProtocolStats, LinuxInternetProtocolStats, MacInternetProtocolStatsJNA, NetBsdInternetProtocolStats, OpenBsdInternetProtocolStats, SolarisInternetProtocolStats, WindowsInternetProtocolStatsJNA
Common implementations for IP Stats
-
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 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InternetProtocolStats
getTCPv4Stats, getUDPv4StatsModifier and TypeMethodDescriptionGet the TCP stats for IPv4 connections.Get the UDP stats for IPv4 datagrams.
-
Constructor Details
-
AbstractInternetProtocolStats
protected AbstractInternetProtocolStats()Default constructor.
-
-
Method Details
-
getTCPv6Stats
Description copied from interface:InternetProtocolStatsGet the TCP stats for IPv6 connections, if available. If not available separately, these may be 0 and included in IPv4 connections.- Specified by:
getTCPv6Statsin interfaceInternetProtocolStats- Returns:
- a
InternetProtocolStats.TcpStatsobject encapsulating the stats.
-
getUDPv6Stats
Description copied from interface:InternetProtocolStatsGet the UDP stats for IPv6 datagrams, if available. If not available separately, these may be 0 and included in IPv4 datagrams.- Specified by:
getUDPv6Statsin interfaceInternetProtocolStats- Returns:
- a
InternetProtocolStats.UdpStatsobject encapsulating the stats.
-
getConnections
Description copied from interface:InternetProtocolStatsGets a list of TCP and UDP connections.- Specified by:
getConnectionsin interfaceInternetProtocolStats- Returns:
- A list of
InternetProtocolStats.IPConnectionobjects for TCP and UDP connections.
-