Class TrafficSummary<T>


  • public class TrafficSummary<T>
    extends java.lang.Object
    Total bytes in/out related to some entity.
    • Method Detail

      • getEntity

        public T getEntity()
      • getBytesIn

        public long getBytesIn()
      • getBytesOut

        public long getBytesOut()
      • getBytesInOut

        public BytesInOut getBytesInOut()
      • isCongestionEncountered

        public boolean isCongestionEncountered()
      • isNonEcnCapableTransport

        public boolean isNonEcnCapableTransport()
      • ecnInfo

        public int ecnInfo()
        Combines the two booleans isCongestionEncountered() and isNonEcnCapableTransport() that capture information about encountered ecn values into a single integer. The resulting integers are:
        • 0: !nonEcnCapableTransport && !congestionEncountered
        • 1: nonEcnCapableTransport && !congestionEncountered
        • 2: !nonEcnCapableTransport && congestionEncountered
        • 3: nonEcnCapableTransport && congestionEncountered
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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