net.sf.fmj.media.rtp
Class RTPGlobalTransmissionStats

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPGlobalTransmissionStats
All Implemented Interfaces:
GlobalTransmissionStats

public class RTPGlobalTransmissionStats
extends java.lang.Object
implements GlobalTransmissionStats

Represents global transmission statistics

Version:
1-1-alpha3
Author:
Andrew G D Rowley, Christian Vincenot

Constructor Summary
RTPGlobalTransmissionStats()
           
 
Method Summary
 void addBytesSent(int bytes)
          Adds bytes to the sent byte count
 void addLocalColl()
          Adds a collision to the local collision count
 void addRemoteColl()
          Adds a collision to the remote collision count
 void addRTCPSent()
          Adds a packet to the sent rtcp packet count
 void addRTPSent()
          Adds a packet to the sent packet count
 void addTransmitFailed()
          Adds a failure to the transmit failed count
 int getBytesSent()
          Returns the number of bytes sent.
 int getLocalColls()
          Returns the number of local collisions.
 int getRemoteColls()
          Returns the number of remote collisions.
 int getRTCPSent()
          Returns the number of RTCP packets sent.
 int getRTPSent()
          Returns the number of RTCP packets sent.
 int getTransmitFailed()
          Returns the number of transmission failures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPGlobalTransmissionStats

public RTPGlobalTransmissionStats()
Method Detail

getRTPSent

public int getRTPSent()
Returns the number of RTCP packets sent.

Specified by:
getRTPSent in interface GlobalTransmissionStats
Returns:
the number of RTCP packets sent

getBytesSent

public int getBytesSent()
Returns the number of bytes sent.

Specified by:
getBytesSent in interface GlobalTransmissionStats
Returns:
the number of bytes sent

getRTCPSent

public int getRTCPSent()
Returns the number of RTCP packets sent.

Specified by:
getRTCPSent in interface GlobalTransmissionStats
Returns:
the number of RTCP packets sent

getLocalColls

public int getLocalColls()
Returns the number of local collisions.

Specified by:
getLocalColls in interface GlobalTransmissionStats
Returns:
the number of local collisions

getRemoteColls

public int getRemoteColls()
Returns the number of remote collisions.

Specified by:
getRemoteColls in interface GlobalTransmissionStats
Returns:
the number of remote collisions

getTransmitFailed

public int getTransmitFailed()
Returns the number of transmission failures.

Specified by:
getTransmitFailed in interface GlobalTransmissionStats
Returns:
the number of transmission failures

addRTPSent

public void addRTPSent()
Adds a packet to the sent packet count


addBytesSent

public void addBytesSent(int bytes)
Adds bytes to the sent byte count

Parameters:
bytes - number of bytes to add

addRTCPSent

public void addRTCPSent()
Adds a packet to the sent rtcp packet count


addLocalColl

public void addLocalColl()
Adds a collision to the local collision count


addRemoteColl

public void addRemoteColl()
Adds a collision to the remote collision count


addTransmitFailed

public void addTransmitFailed()
Adds a failure to the transmit failed count