Package oshi.software.common
Class AbstractInternetProtocolStats
- java.lang.Object
-
- oshi.software.common.AbstractInternetProtocolStats
-
- All Implemented Interfaces:
InternetProtocolStats
- Direct Known Subclasses:
AixInternetProtocolStats
,FreeBsdInternetProtocolStats
,LinuxInternetProtocolStats
,MacInternetProtocolStats
,OpenBsdInternetProtocolStats
,SolarisInternetProtocolStats
,WindowsInternetProtocolStats
public abstract class AbstractInternetProtocolStats extends java.lang.Object implements InternetProtocolStats
Common implementations for IP Stats
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oshi.software.os.InternetProtocolStats
InternetProtocolStats.IPConnection, InternetProtocolStats.TcpState, InternetProtocolStats.TcpStats, InternetProtocolStats.UdpStats
-
-
Constructor Summary
Constructors Constructor Description AbstractInternetProtocolStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<InternetProtocolStats.IPConnection>
getConnections()
Gets a list of TCP and UDP connections.InternetProtocolStats.TcpStats
getTCPv6Stats()
Get the TCP stats for IPv6 connections, if available.InternetProtocolStats.UdpStats
getUDPv6Stats()
Get the UDP stats for IPv6 datagrams, if available.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oshi.software.os.InternetProtocolStats
getTCPv4Stats, getUDPv4Stats
-
-
-
-
Method Detail
-
getTCPv6Stats
public InternetProtocolStats.TcpStats getTCPv6Stats()
Description copied from interface:InternetProtocolStats
Get the TCP stats for IPv6 connections, if available. If not available separately, these may be 0 and included in IPv4 connections.- Specified by:
getTCPv6Stats
in interfaceInternetProtocolStats
- Returns:
- a
InternetProtocolStats.TcpStats
object encapsulating the stats.
-
getUDPv6Stats
public InternetProtocolStats.UdpStats getUDPv6Stats()
Description copied from interface:InternetProtocolStats
Get the UDP stats for IPv6 datagrams, if available. If not available separately, these may be 0 and included in IPv4 datagrams.- Specified by:
getUDPv6Stats
in interfaceInternetProtocolStats
- Returns:
- a
InternetProtocolStats.UdpStats
object encapsulating the stats.
-
getConnections
public java.util.List<InternetProtocolStats.IPConnection> getConnections()
Description copied from interface:InternetProtocolStats
Gets a list of TCP and UDP connections.- Specified by:
getConnections
in interfaceInternetProtocolStats
- Returns:
- A list of
InternetProtocolStats.IPConnection
objects for TCP and UDP connections.
-
-