Package oshi.software.os.unix.solaris
Class SolarisInternetProtocolStats
- java.lang.Object
-
- oshi.software.common.AbstractInternetProtocolStats
-
- oshi.software.os.unix.solaris.SolarisInternetProtocolStats
-
- All Implemented Interfaces:
InternetProtocolStats
@ThreadSafe public class SolarisInternetProtocolStats extends AbstractInternetProtocolStats
Internet Protocol Stats implementation
-
-
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 SolarisInternetProtocolStats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static InternetProtocolStats.TcpStatsgetTcpStats()InternetProtocolStats.TcpStatsgetTCPv4Stats()Get the TCP stats for IPv4 connections.private static InternetProtocolStats.UdpStatsgetUdpStats()InternetProtocolStats.UdpStatsgetUDPv4Stats()Get the UDP stats for IPv4 datagrams.private static java.lang.String[]splitOnPrefix(java.lang.String s, java.lang.String prefix)-
Methods inherited from class oshi.software.common.AbstractInternetProtocolStats
getConnections, getTCPv6Stats, getUDPv6Stats
-
-
-
-
Method Detail
-
getTCPv4Stats
public InternetProtocolStats.TcpStats getTCPv4Stats()
Description copied from interface:InternetProtocolStatsGet the TCP stats for IPv4 connections.On macOS connection information requires elevated permissions. Without elevatd permissions, segment data is estimated.
- Returns:
- a
InternetProtocolStats.TcpStatsobject encapsulating the stats.
-
getUDPv4Stats
public InternetProtocolStats.UdpStats getUDPv4Stats()
Description copied from interface:InternetProtocolStatsGet the UDP stats for IPv4 datagrams.- Returns:
- a
InternetProtocolStats.UdpStatsobject encapsulating the stats.
-
getTcpStats
private static InternetProtocolStats.TcpStats getTcpStats()
-
getUdpStats
private static InternetProtocolStats.UdpStats getUdpStats()
-
splitOnPrefix
private static java.lang.String[] splitOnPrefix(java.lang.String s, java.lang.String prefix)
-
-