Package oshi.software.os
Class InternetProtocolStats.UdpStats
java.lang.Object
oshi.software.os.InternetProtocolStats.UdpStats
- Enclosing interface:
- InternetProtocolStats
Encapsulates statistics associated with a UDP connection.
-
Constructor Summary
ConstructorDescriptionUdpStats
(long datagramsSent, long datagramsReceived, long datagramsNoPort, long datagramsReceivedErrors) -
Method Summary
Modifier and TypeMethodDescriptionlong
Datagrams No Port is the number of received UDP datagrams for which there was no application at the destination port.long
Datagrams Received is the number of UDP datagrams delivered to UDP users.long
Datagrams Received Errors is the number of received UDP datagrams that could not be delivered for reasons other than the lack of an application at the destination port.long
Datagrams Sent is the number of UDP datagrams sent from the entity.toString()
-
Constructor Details
-
UdpStats
public UdpStats(long datagramsSent, long datagramsReceived, long datagramsNoPort, long datagramsReceivedErrors)
-
-
Method Details
-
getDatagramsSent
public long getDatagramsSent()Datagrams Sent is the number of UDP datagrams sent from the entity.- Returns:
- the datagramsSent
-
getDatagramsReceived
public long getDatagramsReceived()Datagrams Received is the number of UDP datagrams delivered to UDP users.- Returns:
- the datagramsReceived
-
getDatagramsNoPort
public long getDatagramsNoPort()Datagrams No Port is the number of received UDP datagrams for which there was no application at the destination port.- Returns:
- the datagramsNoPort
-
getDatagramsReceivedErrors
public long getDatagramsReceivedErrors()Datagrams Received Errors is the number of received UDP datagrams that could not be delivered for reasons other than the lack of an application at the destination port.- Returns:
- the datagramsReceivedErrors
-
toString
-