public abstract class AbstractTrackStats extends Object implements TrackStats
| Modifier and Type | Field and Description |
|---|---|
protected org.jitsi.utils.stats.RateStatistics |
bitrate
The bitrate.
|
protected AtomicLong |
bytes
The total number of bytes.
|
protected AtomicLong |
bytesNotRetransmitted
Number of bytes for packets which were requested and found in the
cache, but were intentionally not retransmitted.
|
protected AtomicLong |
bytesRetransmitted
Number of bytes retransmitted.
|
protected org.jitsi.utils.stats.RateStatistics |
packetRate
The packet rate.
|
protected AtomicLong |
packets
The total number of RTP packets.
|
protected AtomicLong |
packetsMissingFromCache
The number of packets for which retransmission was requested, but
they were missing from the cache.
|
protected AtomicLong |
packetsNotRetransmitted
Number of packets which were requested and found in the cache, but
were intentionally not retransmitted.
|
protected AtomicLong |
packetsRetransmitted
Number of packets retransmitted.
|
JITTER_UNSET| Modifier and Type | Method and Description |
|---|---|
long |
getBitrate() |
long |
getBytes() |
long |
getBytesNotRetransmitted()
Gets the number of bytes for packets which were requested and found
in the cache, but were intentionally not retransmitted.
|
long |
getBytesRetransmitted()
Gets the number of bytes retransmitted.
|
long |
getCurrentBytes() |
long |
getCurrentPackets() |
long |
getInterval() |
double |
getJitter() |
long |
getPacketRate() |
long |
getPackets() |
long |
getPacketsMissingFromCache()
Gets the number of packets for which retransmission was requested,
but they were missing from the cache.
|
long |
getPacketsNotRetransmitted()
Gets the number of packets which were requested and found in the
cache, but were intentionally not retransmitted.
|
long |
getPacketsRetransmitted()
Gets the number of packets retransmitted.
|
long |
getRtt() |
long |
getSSRC() |
protected void |
packetProcessed(int length,
long now,
boolean rtp)
Notifies this instance that a packet with a given length was processed
(i.e.
|
protected void |
rtpPacketNotRetransmitted(long length)
Notifies this instance that an RTP packet with a given length was
retransmitted.
|
protected void |
rtpPacketRetransmitted(long length)
Notifies this instance that an RTP packet with a given length was not
retransmitted (that is, the remote endpoint requested it,
and it was found in the local cache, but it was not retransmitted).
|
protected void |
setJitter(double jitter)
Sets the last jitter that was sent/received.
|
protected void |
setRtt(long rtt)
Sets
rtt to a specific value in milliseconds. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLossRateprotected final AtomicLong bytes
protected final AtomicLong packets
protected final AtomicLong bytesRetransmitted
protected final AtomicLong bytesNotRetransmitted
protected final AtomicLong packetsRetransmitted
protected final AtomicLong packetsNotRetransmitted
protected final AtomicLong packetsMissingFromCache
protected org.jitsi.utils.stats.RateStatistics bitrate
protected org.jitsi.utils.stats.RateStatistics packetRate
public long getSSRC()
getSSRC in interface TrackStatsTrackStats.protected void packetProcessed(int length,
long now,
boolean rtp)
length - the length of the packet.now - the time at which the packet was processed (passed in order
to avoid calling System.currentTimeMillis()).rtp - whether the packet is an RTP or RTCP packet.public double getJitter()
getJitter in interface TrackStatspublic long getRtt()
getRtt in interface TrackStatspublic long getBytes()
getBytes in interface TrackStatspublic long getPackets()
getPackets in interface TrackStatspublic long getBitrate()
getBitrate in interface TrackStatspublic long getPacketRate()
getPacketRate in interface TrackStatspublic long getCurrentBytes()
getCurrentBytes in interface TrackStatspublic long getCurrentPackets()
getCurrentPackets in interface TrackStatspublic long getInterval()
getInterval in interface TrackStatsTrackStats.getCurrentBytes() and TrackStats.getCurrentPackets() operate.protected void setJitter(double jitter)
jitter - the new value to set on this instance as the last
sent/received jitter (in milliseconds).protected void setRtt(long rtt)
rtt to a specific value in milliseconds.public long getBytesRetransmitted()
getBytesRetransmitted in interface TrackStatspublic long getBytesNotRetransmitted()
getBytesNotRetransmitted in interface TrackStatspublic long getPacketsRetransmitted()
getPacketsRetransmitted in interface TrackStatspublic long getPacketsNotRetransmitted()
getPacketsNotRetransmitted in interface TrackStatspublic long getPacketsMissingFromCache()
getPacketsMissingFromCache in interface TrackStatsprotected void rtpPacketRetransmitted(long length)
length - the length in bytes of the packet.protected void rtpPacketNotRetransmitted(long length)
length - the length in bytes of the packet.Copyright © 2022 jitsi.org. All rights reserved.