com.smaxe.uv
Class ProtocolLayerInfo

java.lang.Object
  extended by com.smaxe.uv.ProtocolLayerInfo
All Implemented Interfaces:
java.io.Serializable

public final class ProtocolLayerInfo
extends java.lang.Object
implements java.io.Serializable

ProtocolLayerInfo - protocol layer info.

Author:
Andrei Sochirca
See Also:
Serialized Form

Field Summary
 long readBytes
          number of read (received) bytes.
 long readPackets
          number of read (received) packets.
 long timestamp
          timestamp.
 long transportReadBytes
          number of bytes read (received) from transport layer (>= readBytes, may include additional traffic that wraps protocol bytes).
 long transportWrittenBytes
          number of bytes written (sent) to the transport layer (>= writtenBytes, may include additional traffic that wraps protocol bytes).
 long writtenBytes
          number of written (sent) bytes.
 long writtenPackets
          number of written (sent) packets.
 
Constructor Summary
ProtocolLayerInfo()
          Constructor.
ProtocolLayerInfo(long readBytes, long writtenBytes, long readPackets, long writtenPackets)
          Constructor.
ProtocolLayerInfo(long readBytes, long writtenBytes, long readPackets, long writtenPackets, long transportReadBytes, long transportWrittenBytes)
          Constructor.
ProtocolLayerInfo(long timestamp, long readBytes, long writtenBytes, long readPackets, long writtenPackets, long transportReadBytes, long transportWrittenBytes)
          Constructor.
ProtocolLayerInfo(ProtocolLayerInfo info)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public long timestamp
timestamp.


readBytes

public long readBytes
number of read (received) bytes.


writtenBytes

public long writtenBytes
number of written (sent) bytes.


readPackets

public long readPackets
number of read (received) packets.


writtenPackets

public long writtenPackets
number of written (sent) packets.


transportReadBytes

public long transportReadBytes
number of bytes read (received) from transport layer (>= readBytes, may include additional traffic that wraps protocol bytes).


transportWrittenBytes

public long transportWrittenBytes
number of bytes written (sent) to the transport layer (>= writtenBytes, may include additional traffic that wraps protocol bytes).

Constructor Detail

ProtocolLayerInfo

public ProtocolLayerInfo(ProtocolLayerInfo info)
Constructor.

Parameters:
info - protocol layer info

ProtocolLayerInfo

public ProtocolLayerInfo(long timestamp,
                         long readBytes,
                         long writtenBytes,
                         long readPackets,
                         long writtenPackets,
                         long transportReadBytes,
                         long transportWrittenBytes)
Constructor.

Parameters:
timestamp - timestamp
readBytes - read protocol bytes
writtenBytes - written protocol bytes
readPackets - read protocol packets
writtenPackets - written protocol packets
transportReadBytes - read transport bytes (>= readBytes, may include HTTP content if tunnelling)
transportWrittenBytes - written transport bytes (>= writtenBytes, may include HTTP content if tunnelling)

ProtocolLayerInfo

public ProtocolLayerInfo(long readBytes,
                         long writtenBytes,
                         long readPackets,
                         long writtenPackets,
                         long transportReadBytes,
                         long transportWrittenBytes)
Constructor.

Parameters:
readBytes - read protocol bytes
writtenBytes - written protocol bytes
readPackets - read protocol packets
writtenPackets - written protocol packets
transportReadBytes - read transport bytes (>= readBytes, may include HTTP content if tunnelling)
transportWrittenBytes - written transport bytes (>= writtenBytes, may include HTTP content if tunnelling)

ProtocolLayerInfo

public ProtocolLayerInfo(long readBytes,
                         long writtenBytes,
                         long readPackets,
                         long writtenPackets)
Constructor.

Parameters:
readBytes - read protocol bytes
writtenBytes - written protocol bytes
readPackets - read protocol packets
writtenPackets - written protocol packets

ProtocolLayerInfo

public ProtocolLayerInfo()
Constructor.

Method Detail

toString

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