fm.liveswitch.RemoteReceiverStats Class Reference

Remote receiver stats. More...

Public Member Functions

int getCumulativeNumberOfPacketsLost ()
 Gets the cumulative number of packets lost. More...
 
long getDelaySinceLastSenderReport ()
 Gets the delay since last sender report. More...
 
long getExtendedHighestSequenceNumberReceived ()
 Gets the extended highest sequence number received. More...
 
int getFractionLost ()
 Gets the fraction lost according to RFC 1889. More...
 
long getInterarrivalJitter ()
 Gets the interarrival jitter. More...
 
long getLastSenderReportTimestamp ()
 Gets the last sender report timestamp. More...
 
double getPercentLost ()
 Gets the percentage of lost packets. More...
 
long getSynchronizationSource ()
 Gets the synchronization source. More...
 
boolean isEquivalent (fm.liveswitch.RemoteReceiverStats instance)
 Checks if a remote receiver is equivalent to this one. More...
 
 RemoteReceiverStats ()
 
String toJson ()
 Serializes this to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.RemoteReceiverStats >
abstract boolean isEquivalent (T instance)
 Checks if an instance is equivalent to this one. More...
 

Static Public Member Functions

static fm.liveswitch.RemoteReceiverStats fromJson (String remoteReceiverJson)
 Derializes remote receiver stats from JSON. More...
 
static fm.liveswitch.RemoteReceiverStats[] fromJsonArray (String remoteReceiversJson)
 Derializes a remote receiver stats array from JSON. More...
 
static String toJson (fm.liveswitch.RemoteReceiverStats remoteReceiver)
 Serializes remote receiver stats to JSON. More...
 
static String toJsonArray (fm.liveswitch.RemoteReceiverStats[] remoteReceivers)
 Serializes a remote receiver stats array to JSON. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 

Detailed Description

Remote receiver stats.

Constructor & Destructor Documentation

◆ RemoteReceiverStats()

fm.liveswitch.RemoteReceiverStats.RemoteReceiverStats ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.RemoteReceiverStats.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

◆ fromJson()

static fm.liveswitch.RemoteReceiverStats fm.liveswitch.RemoteReceiverStats.fromJson ( String  remoteReceiverJson)
static

Derializes remote receiver stats from JSON.

Parameters
remoteReceiverJsonThe remote receiver's stats JSON.

◆ fromJsonArray()

static fm.liveswitch.RemoteReceiverStats [] fm.liveswitch.RemoteReceiverStats.fromJsonArray ( String  remoteReceiversJson)
static

Derializes a remote receiver stats array from JSON.

Parameters
remoteReceiversJsonThe remote receivers' stats JSON.

◆ getCumulativeNumberOfPacketsLost()

int fm.liveswitch.RemoteReceiverStats.getCumulativeNumberOfPacketsLost ( )

Gets the cumulative number of packets lost.

◆ getDelaySinceLastSenderReport()

long fm.liveswitch.RemoteReceiverStats.getDelaySinceLastSenderReport ( )

Gets the delay since last sender report.

◆ getExtendedHighestSequenceNumberReceived()

long fm.liveswitch.RemoteReceiverStats.getExtendedHighestSequenceNumberReceived ( )

Gets the extended highest sequence number received.

◆ getFractionLost()

int fm.liveswitch.RemoteReceiverStats.getFractionLost ( )

Gets the fraction lost according to RFC 1889.

The value has a range of 0 (no packet loss) to 255 (all packets lost).

◆ getInterarrivalJitter()

long fm.liveswitch.RemoteReceiverStats.getInterarrivalJitter ( )

Gets the interarrival jitter.

◆ getLastSenderReportTimestamp()

long fm.liveswitch.RemoteReceiverStats.getLastSenderReportTimestamp ( )

Gets the last sender report timestamp.

◆ getPercentLost()

double fm.liveswitch.RemoteReceiverStats.getPercentLost ( )

Gets the percentage of lost packets.

The value has a range of 0.0 (no packet loss) to 1.0 (all packets lost).

◆ getSynchronizationSource()

long fm.liveswitch.RemoteReceiverStats.getSynchronizationSource ( )

Gets the synchronization source.

◆ isEquivalent()

boolean fm.liveswitch.RemoteReceiverStats.isEquivalent ( fm.liveswitch.RemoteReceiverStats  instance)

Checks if a remote receiver is equivalent to this one.

Parameters
instanceThe remote receiver.

◆ serializeProperties()

void fm.liveswitch.RemoteReceiverStats.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

◆ toJson() [1/2]

String fm.liveswitch.RemoteReceiverStats.toJson ( )

Serializes this to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.RemoteReceiverStats.toJson ( fm.liveswitch.RemoteReceiverStats  remoteReceiver)
static

Serializes remote receiver stats to JSON.

Parameters
remoteReceiverThe remote receiver's stats.

◆ toJsonArray()

static String fm.liveswitch.RemoteReceiverStats.toJsonArray ( fm.liveswitch.RemoteReceiverStats[]  remoteReceivers)
static

Serializes a remote receiver stats array to JSON.

Parameters
remoteReceiversThe remote receivers' stats.