net.sf.fmj.media.rtp
Class RTPGlobalReceptionStats

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPGlobalReceptionStats
All Implemented Interfaces:
GlobalReceptionStats

public class RTPGlobalReceptionStats
extends java.lang.Object
implements GlobalReceptionStats

Represents reception statistics

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

Constructor Summary
RTPGlobalReceptionStats()
           
 
Method Summary
 void addBadRTCPPkt()
          Adds a bad rtcp packet to the bad rtcp packet count
 void addBadRTPkt()
          Adds a packet to the bad packet count
 void addBytesRecd(int bytes)
          Adds bytes to the received byte count
 void addLocalColl()
          Adds a collision to the local collision count
 void addLoopedPacket()
          Adds a packet to the looped packet count
 void addMalformedBYE()
          Adds a malformed BYE to the malformed BYE count
 void addMalformedRR()
          Adds a malformed RR to the malformed RR count
 void addMalformedSDES()
          Adds a malformed SDES to the malformed SDES count
 void addMalformedSR()
          Adds a malformed SR to the malformed SR count
 void addPacketRecd()
          Adds a packet to the received packet count
 void addRemoteColl()
          Adds a collision to the remote collision count
 void addRTCPRecd()
          Adds a rtcp pakcet to the received rtcp packet count
 void addSRRecd()
          Adds a sr packet to the received sr packet count
 void addTransmitFailed()
          Adds a failure to the transmit failed count
 void addUnknownType()
          Adds a unknown type to the unknown type count
 int getBadRTCPPkts()
          Returns the number of bad RTCP packets received.
 int getBadRTPkts()
          Returns the number of bad packets received.
 int getBytesRecd()
          Returns the number of bytes received.
 int getLocalColls()
          Returns the number of local collisions.
 int getMalformedBye()
          Returns the number of malformed RTCP BYE packets received.
 int getMalformedRR()
          Returns the number of malformed RTCP Receiver Reports (RR) packets.
 int getMalformedSDES()
          Returns the number of malformed RTCP Source Description (SDES) packets received.
 int getMalformedSR()
          Returns the number of malformed RTCP Sender Reports (SR) packets received.
 int getPacketsLooped()
          Returns the number of packets loops.
 int getPacketsRecd()
          Returns the number of packets received.
 int getRemoteColls()
          Returns the number of remote collisions.
 int getRTCPRecd()
          Returns the number of RTCP packets received.
 int getSRRecd()
          Returns the number of RTCP Sender Reports (SR) received.
 int getTransmitFailed()
          Returns the number of transmission failures.
 int getUnknownTypes()
          Returns the number of unknown packets' types seen.
 void resetBytesRecd()
          Resets the number of bytes read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPGlobalReceptionStats

public RTPGlobalReceptionStats()
Method Detail

getPacketsRecd

public int getPacketsRecd()
Returns the number of packets received.

Specified by:
getPacketsRecd in interface GlobalReceptionStats
Returns:
the number of packets received

getBytesRecd

public int getBytesRecd()
Returns the number of bytes received.

Specified by:
getBytesRecd in interface GlobalReceptionStats
Returns:
the number of bytes received

resetBytesRecd

public void resetBytesRecd()
Resets the number of bytes read


getBadRTPkts

public int getBadRTPkts()
Returns the number of bad packets received.

Specified by:
getBadRTPkts in interface GlobalReceptionStats
Returns:
the number of bad packets received

getLocalColls

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

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

getRemoteColls

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

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

getPacketsLooped

public int getPacketsLooped()
Returns the number of packets loops.

Specified by:
getPacketsLooped in interface GlobalReceptionStats
Returns:
the number of packets loops

getTransmitFailed

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

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

getRTCPRecd

public int getRTCPRecd()
Returns the number of RTCP packets received.

Specified by:
getRTCPRecd in interface GlobalReceptionStats
Returns:
the number of RTCP packets received

getSRRecd

public int getSRRecd()
Returns the number of RTCP Sender Reports (SR) received.

Specified by:
getSRRecd in interface GlobalReceptionStats
Returns:
the number of RTCP Sender Reports (SR) received

getBadRTCPPkts

public int getBadRTCPPkts()
Returns the number of bad RTCP packets received.

Specified by:
getBadRTCPPkts in interface GlobalReceptionStats
Returns:
the number of bad RTCP packets received

getUnknownTypes

public int getUnknownTypes()
Returns the number of unknown packets' types seen.

Specified by:
getUnknownTypes in interface GlobalReceptionStats
Returns:
the number of unknown packets' types seen

getMalformedRR

public int getMalformedRR()
Returns the number of malformed RTCP Receiver Reports (RR) packets.

Specified by:
getMalformedRR in interface GlobalReceptionStats
Returns:
the number of malformed RTCP Receiver Reports (RR) packets

getMalformedSDES

public int getMalformedSDES()
Returns the number of malformed RTCP Source Description (SDES) packets received.

Specified by:
getMalformedSDES in interface GlobalReceptionStats
Returns:
the number of malformed RTCP Source Description (SDES) packets received

getMalformedBye

public int getMalformedBye()
Returns the number of malformed RTCP BYE packets received.

Specified by:
getMalformedBye in interface GlobalReceptionStats
Returns:
the number of malformed RTCP BYE packets received

getMalformedSR

public int getMalformedSR()
Returns the number of malformed RTCP Sender Reports (SR) packets received.

Specified by:
getMalformedSR in interface GlobalReceptionStats
Returns:
the number of malformed RTCP Sender Reports (SR) packets received

addPacketRecd

public void addPacketRecd()
Adds a packet to the received packet count


addBytesRecd

public void addBytesRecd(int bytes)
Adds bytes to the received byte count

Parameters:
bytes - number of bytes to add

addBadRTPkt

public void addBadRTPkt()
Adds a packet to the bad 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


addLoopedPacket

public void addLoopedPacket()
Adds a packet to the looped packet count


addTransmitFailed

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


addRTCPRecd

public void addRTCPRecd()
Adds a rtcp pakcet to the received rtcp packet count


addSRRecd

public void addSRRecd()
Adds a sr packet to the received sr packet count


addBadRTCPPkt

public void addBadRTCPPkt()
Adds a bad rtcp packet to the bad rtcp packet count


addUnknownType

public void addUnknownType()
Adds a unknown type to the unknown type count


addMalformedRR

public void addMalformedRR()
Adds a malformed RR to the malformed RR count


addMalformedSDES

public void addMalformedSDES()
Adds a malformed SDES to the malformed SDES count


addMalformedBYE

public void addMalformedBYE()
Adds a malformed BYE to the malformed BYE count


addMalformedSR

public void addMalformedSR()
Adds a malformed SR to the malformed SR count