Class InternetProtocolStats.TcpStats

java.lang.Object
oshi.software.os.InternetProtocolStats.TcpStats
Enclosing interface:
InternetProtocolStats

@Immutable public static final class InternetProtocolStats.TcpStats extends Object
Encapsulates statistics associated with a TCP connection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TcpStats(long connectionsEstablished, long connectionsActive, long connectionsPassive, long connectionFailures, long connectionsReset, long segmentsSent, long segmentsReceived, long segmentsRetransmitted, long inErrors, long outResets)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Connection Failures is the number of times TCP connections have made a direct transition to the CLOSED state from the SYN-SENT state or the SYN-RCVD state, plus the number of times TCP connections have made a direct transition to the LISTEN state from the SYN-RCVD state.
    long
    Connections Active is the number of times TCP connections have made a direct transition to the SYN-SENT state from the CLOSED state.
    long
    Connections Established is the number of TCP connections for which the current state is either ESTABLISHED or CLOSE-WAIT
    long
    Connections Passive is the number of times TCP connections have made a direct transition to the SYN-RCVD state from the LISTEN state.
    long
    Connections Reset is the number of times TCP connections have made a direct transition to the CLOSED state from either the ESTABLISHED state or the CLOSE-WAIT state.
    long
    The number of errors received.
    long
    The number of segments transmitted with the reset flag set.
    long
    Segments Received is the number of segments received, including those received in error.
    long
    Segments Retransmitted is the number of segments retransmitted, that is, segments transmitted containing one or more previously transmitted bytes.
    long
    Segments Sent is the number of segments sent, including those on current connections, but excluding those containing only retransmitted bytes.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TcpStats

      public TcpStats(long connectionsEstablished, long connectionsActive, long connectionsPassive, long connectionFailures, long connectionsReset, long segmentsSent, long segmentsReceived, long segmentsRetransmitted, long inErrors, long outResets)
  • Method Details

    • getConnectionsEstablished

      public long getConnectionsEstablished()
      Connections Established is the number of TCP connections for which the current state is either ESTABLISHED or CLOSE-WAIT
      Returns:
      the connectionsEstablished
    • getConnectionsActive

      public long getConnectionsActive()
      Connections Active is the number of times TCP connections have made a direct transition to the SYN-SENT state from the CLOSED state. In other words, it shows a number of connections which are initiated by the local computer. The value is a cumulative total.
      Returns:
      the connectionsActive
    • getConnectionsPassive

      public long getConnectionsPassive()
      Connections Passive is the number of times TCP connections have made a direct transition to the SYN-RCVD state from the LISTEN state. In other words, it shows a number of connections to the local computer, which are initiated by remote computers. The value is a cumulative total.
      Returns:
      the connectionsPassive
    • getConnectionFailures

      public long getConnectionFailures()
      Connection Failures is the number of times TCP connections have made a direct transition to the CLOSED state from the SYN-SENT state or the SYN-RCVD state, plus the number of times TCP connections have made a direct transition to the LISTEN state from the SYN-RCVD state.
      Returns:
      the connectionFailures
    • getConnectionsReset

      public long getConnectionsReset()
      Connections Reset is the number of times TCP connections have made a direct transition to the CLOSED state from either the ESTABLISHED state or the CLOSE-WAIT state.
      Returns:
      the connectionsReset
    • getSegmentsSent

      public long getSegmentsSent()
      Segments Sent is the number of segments sent, including those on current connections, but excluding those containing only retransmitted bytes.
      Returns:
      the segmentsSent
    • getSegmentsReceived

      public long getSegmentsReceived()
      Segments Received is the number of segments received, including those received in error. This count includes segments received on currently established connections.
      Returns:
      the segmentsReceived
    • getSegmentsRetransmitted

      public long getSegmentsRetransmitted()
      Segments Retransmitted is the number of segments retransmitted, that is, segments transmitted containing one or more previously transmitted bytes.
      Returns:
      the segmentsRetransmitted
    • getInErrors

      public long getInErrors()
      The number of errors received.
      Returns:
      the inErrors
    • getOutResets

      public long getOutResets()
      The number of segments transmitted with the reset flag set.
      Returns:
      the outResets
    • toString

      public String toString()
      Overrides:
      toString in class Object