barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Class MonitorUDT

java.lang.Object
  extended by com.barchart.udt.MonitorUDT

public class MonitorUDT
extends Object

note: do not change field names; used by JNI


Field Summary
protected  int byteAvailRcvBuf
          available UDT receiver buffer size
protected  int byteAvailSndBuf
          available UDT sender buffer size
protected  double mbpsBandwidth
          estimated bandwidth, in Mb/s
protected  double mbpsRecvRate
          receiving rate in Mb/s
protected  double mbpsSendRate
          sending rate in Mb/s
protected  double msRTT
          RTT, in milliseconds
protected  long msTimeStamp
          time since the UDT entity is started, in milliseconds.
protected  int pktCongestionWindow
          congestion window size, in number of packets
protected  int pktFlightSize
          number of packets on flight
protected  int pktFlowWindow
          flow window size, in number of packets
protected  int pktRcvLoss
          number of lost packets (receiverer side)
protected  int pktRcvLossTotal
          total number of lost packets (receiver side)
protected  long pktRecv
          number of received packets
protected  int pktRecvACK
          number of received ACK packets
protected  int pktRecvACKTotal
          total number of received ACK packets
protected  int pktRecvNAK
          number of received NAK packets
protected  int pktRecvNAKTotal
          total number of received NAK packets
protected  long pktRecvTotal
          total number of received packets
protected  int pktRetrans
          number of retransmitted packets
protected  int pktRetransTotal
          total number of retransmitted packets
protected  long pktSent
          number of sent data packets, including retransmissions
protected  int pktSentACK
          number of sent ACK packets
protected  int pktSentACKTotal
          total number of sent ACK packets
protected  int pktSentNAK
          number of sent NAK packets
protected  int pktSentNAKTotal
          total number of sent NAK packets
protected  long pktSentTotal
          total number of sent data packets, including retransmissions
protected  int pktSndLoss
          number of lost packets (sender side)
protected  int pktSndLossTotal
          total number of lost packets (sender side)
protected  SocketUDT socketUDT
           
protected  double usPktSndPeriod
          packet sending period, in microseconds
protected  long usSndDuration
          busy sending time (i.e., idle time exclusive)
protected  long usSndDurationTotal
          total time duration when UDT is sending data (idle time exclusive)
 
Constructor Summary
protected MonitorUDT(SocketUDT socketUDT)
           
 
Method Summary
 void appendSnapshot(StringBuilder text)
          current monitor status snapshot for all parameters
 int currentAvailableInReceiver()
           
 int currentAvailableInSender()
           
 int currentCongestionWindow()
           
 int currentFlightSize()
           
 int currentFlowWindow()
           
 double currentMbpsBandwidth()
           
 double currentMillisRTT()
           
 double currentSendPeriod()
           
 long globalMicrosSendDurationTotal()
           
 int globalReceivedAckTotal()
           
 int globalReceivedNakTotal()
           
 long globalReceivedTotal()
           
 int globalReceiverLost()
           
 int globalRetransmittedTotal()
           
 int globalSenderLost()
           
 int globalSentAckTotal()
           
 int globalSentNakTotal()
           
 long globalSentTotal()
           
protected  boolean isNumeric(Field field)
           
 long localPacketsReceived()
           
 long localPacketsSent()
           
 int localReceivedAck()
           
 int localReceivedNak()
           
 int localReceiverLost()
           
 int localRetransmitted()
           
 int localSenderLost()
           
 int localSentAck()
           
 int localSentNak()
           
 double mbpsReceiveRate()
           
 double mbpsSendRate()
           
 long microsSendTime()
           
 long millisSinceStart()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socketUDT

protected final SocketUDT socketUDT

msTimeStamp

protected volatile long msTimeStamp
time since the UDT entity is started, in milliseconds.


pktSentTotal

protected volatile long pktSentTotal
total number of sent data packets, including retransmissions


pktRecvTotal

protected volatile long pktRecvTotal
total number of received packets


pktSndLossTotal

protected volatile int pktSndLossTotal
total number of lost packets (sender side)


pktRcvLossTotal

protected volatile int pktRcvLossTotal
total number of lost packets (receiver side)


pktRetransTotal

protected volatile int pktRetransTotal
total number of retransmitted packets


pktSentACKTotal

protected volatile int pktSentACKTotal
total number of sent ACK packets


pktRecvACKTotal

protected volatile int pktRecvACKTotal
total number of received ACK packets


pktSentNAKTotal

protected volatile int pktSentNAKTotal
total number of sent NAK packets


pktRecvNAKTotal

protected volatile int pktRecvNAKTotal
total number of received NAK packets


usSndDurationTotal

protected volatile long usSndDurationTotal
total time duration when UDT is sending data (idle time exclusive)


pktSent

protected volatile long pktSent
number of sent data packets, including retransmissions


pktRecv

protected volatile long pktRecv
number of received packets


pktSndLoss

protected volatile int pktSndLoss
number of lost packets (sender side)


pktRcvLoss

protected volatile int pktRcvLoss
number of lost packets (receiverer side)


pktRetrans

protected volatile int pktRetrans
number of retransmitted packets


pktSentACK

protected volatile int pktSentACK
number of sent ACK packets


pktRecvACK

protected volatile int pktRecvACK
number of received ACK packets


pktSentNAK

protected volatile int pktSentNAK
number of sent NAK packets


pktRecvNAK

protected volatile int pktRecvNAK
number of received NAK packets


mbpsSendRate

protected volatile double mbpsSendRate
sending rate in Mb/s


mbpsRecvRate

protected volatile double mbpsRecvRate
receiving rate in Mb/s


usSndDuration

protected volatile long usSndDuration
busy sending time (i.e., idle time exclusive)


usPktSndPeriod

protected volatile double usPktSndPeriod
packet sending period, in microseconds


pktFlowWindow

protected volatile int pktFlowWindow
flow window size, in number of packets


pktCongestionWindow

protected volatile int pktCongestionWindow
congestion window size, in number of packets


pktFlightSize

protected volatile int pktFlightSize
number of packets on flight


msRTT

protected volatile double msRTT
RTT, in milliseconds


mbpsBandwidth

protected volatile double mbpsBandwidth
estimated bandwidth, in Mb/s


byteAvailSndBuf

protected volatile int byteAvailSndBuf
available UDT sender buffer size


byteAvailRcvBuf

protected volatile int byteAvailRcvBuf
available UDT receiver buffer size

Constructor Detail

MonitorUDT

protected MonitorUDT(SocketUDT socketUDT)
Method Detail

millisSinceStart

public long millisSinceStart()

globalSentTotal

public long globalSentTotal()

globalReceivedTotal

public long globalReceivedTotal()

globalSenderLost

public int globalSenderLost()

globalReceiverLost

public int globalReceiverLost()

globalRetransmittedTotal

public int globalRetransmittedTotal()

globalSentAckTotal

public int globalSentAckTotal()

globalReceivedAckTotal

public int globalReceivedAckTotal()

globalSentNakTotal

public int globalSentNakTotal()

globalReceivedNakTotal

public int globalReceivedNakTotal()

globalMicrosSendDurationTotal

public long globalMicrosSendDurationTotal()

localPacketsSent

public long localPacketsSent()

localPacketsReceived

public long localPacketsReceived()

localSenderLost

public int localSenderLost()

localReceiverLost

public int localReceiverLost()

localRetransmitted

public int localRetransmitted()

localSentAck

public int localSentAck()

localReceivedAck

public int localReceivedAck()

localSentNak

public int localSentNak()

localReceivedNak

public int localReceivedNak()

mbpsSendRate

public double mbpsSendRate()

mbpsReceiveRate

public double mbpsReceiveRate()

microsSendTime

public long microsSendTime()

currentSendPeriod

public double currentSendPeriod()

currentFlowWindow

public int currentFlowWindow()

currentCongestionWindow

public int currentCongestionWindow()

currentFlightSize

public int currentFlightSize()

currentMillisRTT

public double currentMillisRTT()

currentMbpsBandwidth

public double currentMbpsBandwidth()

currentAvailableInSender

public int currentAvailableInSender()

currentAvailableInReceiver

public int currentAvailableInReceiver()

appendSnapshot

public void appendSnapshot(StringBuilder text)
current monitor status snapshot for all parameters


isNumeric

protected boolean isNumeric(Field field)

toString

public String toString()
Overrides:
toString in class Object

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.