Class InternetProtocolStats.TcpStats

  • Enclosing interface:
    InternetProtocolStats

    @Immutable
    public static final class InternetProtocolStats.TcpStats
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      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.
      long getConnectionsEstablished()
      Connections Established is the number of TCP connections for which the current state is either ESTABLISHED or CLOSE-WAIT
      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.
      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.
      long getInErrors()
      The number of errors received.
      long getOutResets()
      The number of segments transmitted with the reset flag set.
      long getSegmentsReceived()
      Segments Received is the number of segments received, including those received in error.
      long getSegmentsRetransmitted()
      Segments Retransmitted is the number of segments retransmitted, that is, segments transmitted containing one or more previously transmitted bytes.
      long getSegmentsSent()
      Segments Sent is the number of segments sent, including those on current connections, but excluding those containing only retransmitted bytes.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • connectionsEstablished

        private final long connectionsEstablished
      • connectionsActive

        private final long connectionsActive
      • connectionsPassive

        private final long connectionsPassive
      • connectionFailures

        private final long connectionFailures
      • connectionsReset

        private final long connectionsReset
      • segmentsSent

        private final long segmentsSent
      • segmentsReceived

        private final long segmentsReceived
      • segmentsRetransmitted

        private final long segmentsRetransmitted
      • inErrors

        private final long inErrors
      • outResets

        private final long outResets
    • Constructor Detail

      • TcpStats

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

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object