Package org.jitsi.service.neomedia.stats
Interface TrackStats
-
- All Known Subinterfaces:
ReceiveTrackStats,SendTrackStats
- All Known Implementing Classes:
AbstractTrackStats,ReceiveTrackStatsImpl,SendTrackStatsImpl
public interface TrackStatsBasic statistics for a single "stream". A stream can be defined either as the packets with a particular SSRC, or all packets of aMediaStream, or something else. This class does not make a distinction between packets sent or received.- Author:
- Damian Minkov, Boris Grozev
-
-
Field Summary
Fields Modifier and Type Field Description static doubleJITTER_UNSETThe value that indicates that no values has been set for the jitter field.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetBitrate()longgetBytes()longgetBytesNotRetransmitted()Gets the number of bytes for packets which were requested and found in the cache, but were intentionally not retransmitted.longgetBytesRetransmitted()Gets the number of bytes retransmitted.longgetCurrentBytes()longgetCurrentPackets()longgetInterval()doublegetJitter()doublegetLossRate()longgetPacketRate()longgetPackets()longgetPacketsMissingFromCache()Gets the number of packets for which retransmission was requested, but they were missing from the cache.longgetPacketsNotRetransmitted()Gets the number of packets which were requested and found in the cache, but were intentionally not retransmitted.longgetPacketsRetransmitted()Gets the number of packets retransmitted.longgetRtt()longgetSSRC()
-
-
-
Field Detail
-
JITTER_UNSET
static final double JITTER_UNSET
The value that indicates that no values has been set for the jitter field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSSRC
long getSSRC()
- Returns:
- the SSRC associated with this
TrackStats.
-
getJitter
double getJitter()
- Returns:
- the jitter in milliseconds.
-
getBytes
long getBytes()
- Returns:
- the total number of bytes.
-
getPackets
long getPackets()
- Returns:
- the total number of packets.
-
getRtt
long getRtt()
- Returns:
- the round trip time in milliseconds.
-
getBitrate
long getBitrate()
- Returns:
- the current bitrate in bits per second.
-
getPacketRate
long getPacketRate()
- Returns:
- the current packet rate in packets per second.
-
getCurrentBytes
long getCurrentBytes()
- Returns:
- the number of bytes in the last interval.
-
getCurrentPackets
long getCurrentPackets()
- Returns:
- the number of packets in the last interval.
-
getInterval
long getInterval()
- Returns:
- the interval length in milliseconds over which
getCurrentBytes()andgetCurrentPackets()operate.
-
getLossRate
double getLossRate()
- Returns:
- an estimate for the recent loss rate.
-
getPacketsMissingFromCache
long getPacketsMissingFromCache()
Gets the number of packets for which retransmission was requested, but they were missing from the cache.- Returns:
- the number of packets for which retransmission was requested, but they were missing from the cache.
-
getBytesRetransmitted
long getBytesRetransmitted()
Gets the number of bytes retransmitted.- Returns:
- the number of bytes retransmitted.
-
getBytesNotRetransmitted
long getBytesNotRetransmitted()
Gets the number of bytes for packets which were requested and found in the cache, but were intentionally not retransmitted.- Returns:
- the number of bytes for packets which were requested and found in the cache, but were intentionally not retransmitted.
-
getPacketsRetransmitted
long getPacketsRetransmitted()
Gets the number of packets retransmitted.- Returns:
- the number of packets retransmitted.
-
getPacketsNotRetransmitted
long getPacketsNotRetransmitted()
Gets the number of packets which were requested and found in the cache, but were intentionally not retransmitted.- Returns:
- the number of packets which were requested and found in the cache, but were intentionally not retransmitted.
-
-