Class InternetProtocolStats.UdpStats

  • Enclosing interface:
    InternetProtocolStats

    @Immutable
    public static final class InternetProtocolStats.UdpStats
    extends java.lang.Object
    Encapsulates statistics associated with a UDP connection.
    • Constructor Summary

      Constructors 
      Constructor Description
      UdpStats​(long datagramsSent, long datagramsReceived, long datagramsNoPort, long datagramsReceivedErrors)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDatagramsNoPort()
      Datagrams No Port is the number of received UDP datagrams for which there was no application at the destination port.
      long getDatagramsReceived()
      Datagrams Received is the number of UDP datagrams delivered to UDP users.
      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.
      long getDatagramsSent()
      Datagrams Sent is the number of UDP datagrams sent from the entity.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • datagramsSent

        private final long datagramsSent
      • datagramsReceived

        private final long datagramsReceived
      • datagramsNoPort

        private final long datagramsNoPort
      • datagramsReceivedErrors

        private final long datagramsReceivedErrors
    • Constructor Detail

      • UdpStats

        public UdpStats​(long datagramsSent,
                        long datagramsReceived,
                        long datagramsNoPort,
                        long datagramsReceivedErrors)
    • Method Detail

      • 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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object