fm.liveswitch.CandidatePairStats Class Reference

Candidate pair stats. More...

Public Member Functions

 CandidatePairStats ()
 Initializes a new instance of the fm.liveswitch.CandidatePairStats class. More...
 
long getBytesReceived ()
 Gets the number of bytes received. More...
 
long getBytesSent ()
 Gets the number of bytes sent. More...
 
long getConsentRequestsReceived ()
 Gets the number of consent requests received. More...
 
long getConsentRequestsSent ()
 Gets the number of consent requests sent. More...
 
long getConsentResponsesReceived ()
 Gets the number of consent responses received. More...
 
long getConsentResponsesSent ()
 Gets the number of consent responses sent. More...
 
int getCurrentRoundTripTime ()
 Gets the current round trip time in milliseconds. More...
 
String getLocalCandidateId ()
 Gets the local candidate identifier. More...
 
boolean getNominated ()
 Gets whether the candidate pair is nominated. More...
 
long getPriority ()
 Gets the priority. More...
 
String getRemoteCandidateId ()
 Gets the remote candidate identifier. More...
 
long getRequestsReceived ()
 Gets the number of requests received. More...
 
long getRequestsSent ()
 Gets the number of requests sent. More...
 
long getResponsesReceived ()
 Gets the number of responses received. More...
 
long getResponsesSent ()
 Gets the number of responses sent. More...
 
fm.liveswitch.CandidatePairState getState ()
 Gets the state. More...
 
int getTotalRoundTripTime ()
 Gets the total round trip time in milliseconds. More...
 
String getTransportId ()
 Gets the transport identifier. More...
 
boolean isEquivalent (fm.liveswitch.CandidatePairStats instance)
 Checks if a candidate pair is equivalent to this one. More...
 
String toJson ()
 Serializes this to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.BaseStats
String getId ()
 Gets the identifier of the object generating these stats. More...
 
java.util.Date getTimestamp ()
 Gets the timestamp when these stats were generated. More...
 
- Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.CandidatePairStats >
abstract boolean isEquivalent (T instance)
 Checks if an instance is equivalent to this one. More...
 

Static Public Member Functions

static fm.liveswitch.CandidatePairStats fromJson (String candidatePairJson)
 Derializes candidate pair stats from JSON. More...
 
static fm.liveswitch.CandidatePairStats[] fromJsonArray (String candidatePairsJson)
 Derializes an array of candidate pair stats from JSON. More...
 
static String toJson (fm.liveswitch.CandidatePairStats candidatePair)
 Serializes candidate pair stats to JSON. More...
 
static String toJsonArray (fm.liveswitch.CandidatePairStats[] candidatePairs)
 Serializes an array of candidate pair stats 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...
 
- Protected Member Functions inherited from fm.liveswitch.BaseStats
 BaseStats ()
 

Detailed Description

Candidate pair stats.

Constructor & Destructor Documentation

◆ CandidatePairStats()

fm.liveswitch.CandidatePairStats.CandidatePairStats ( )

Initializes a new instance of the fm.liveswitch.CandidatePairStats class.

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.BaseStats.

◆ fromJson()

static fm.liveswitch.CandidatePairStats fm.liveswitch.CandidatePairStats.fromJson ( String  candidatePairJson)
static

Derializes candidate pair stats from JSON.

Parameters
candidatePairJsonThe candidate pair's stats JSON.

◆ fromJsonArray()

static fm.liveswitch.CandidatePairStats [] fm.liveswitch.CandidatePairStats.fromJsonArray ( String  candidatePairsJson)
static

Derializes an array of candidate pair stats from JSON.

Parameters
candidatePairsJsonThe candidate pairs' stats JSON.

◆ getBytesReceived()

long fm.liveswitch.CandidatePairStats.getBytesReceived ( )

Gets the number of bytes received.

◆ getBytesSent()

long fm.liveswitch.CandidatePairStats.getBytesSent ( )

Gets the number of bytes sent.

◆ getConsentRequestsReceived()

long fm.liveswitch.CandidatePairStats.getConsentRequestsReceived ( )

Gets the number of consent requests received.

◆ getConsentRequestsSent()

long fm.liveswitch.CandidatePairStats.getConsentRequestsSent ( )

Gets the number of consent requests sent.

◆ getConsentResponsesReceived()

long fm.liveswitch.CandidatePairStats.getConsentResponsesReceived ( )

Gets the number of consent responses received.

◆ getConsentResponsesSent()

long fm.liveswitch.CandidatePairStats.getConsentResponsesSent ( )

Gets the number of consent responses sent.

◆ getCurrentRoundTripTime()

int fm.liveswitch.CandidatePairStats.getCurrentRoundTripTime ( )

Gets the current round trip time in milliseconds.

◆ getLocalCandidateId()

String fm.liveswitch.CandidatePairStats.getLocalCandidateId ( )

Gets the local candidate identifier.

◆ getNominated()

boolean fm.liveswitch.CandidatePairStats.getNominated ( )

Gets whether the candidate pair is nominated.

◆ getPriority()

long fm.liveswitch.CandidatePairStats.getPriority ( )

Gets the priority.

◆ getRemoteCandidateId()

String fm.liveswitch.CandidatePairStats.getRemoteCandidateId ( )

Gets the remote candidate identifier.

◆ getRequestsReceived()

long fm.liveswitch.CandidatePairStats.getRequestsReceived ( )

Gets the number of requests received.

◆ getRequestsSent()

long fm.liveswitch.CandidatePairStats.getRequestsSent ( )

Gets the number of requests sent.

◆ getResponsesReceived()

long fm.liveswitch.CandidatePairStats.getResponsesReceived ( )

Gets the number of responses received.

◆ getResponsesSent()

long fm.liveswitch.CandidatePairStats.getResponsesSent ( )

Gets the number of responses sent.

◆ getState()

fm.liveswitch.CandidatePairState fm.liveswitch.CandidatePairStats.getState ( )

Gets the state.

◆ getTotalRoundTripTime()

int fm.liveswitch.CandidatePairStats.getTotalRoundTripTime ( )

Gets the total round trip time in milliseconds.

◆ getTransportId()

String fm.liveswitch.CandidatePairStats.getTransportId ( )

Gets the transport identifier.

◆ isEquivalent()

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

Checks if a candidate pair is equivalent to this one.

Parameters
instanceThe candidate pair.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ toJson() [1/2]

String fm.liveswitch.CandidatePairStats.toJson ( )

Serializes this to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.CandidatePairStats.toJson ( fm.liveswitch.CandidatePairStats  candidatePair)
static

Serializes candidate pair stats to JSON.

Parameters
candidatePairThe candidate pair's stats.

◆ toJsonArray()

static String fm.liveswitch.CandidatePairStats.toJsonArray ( fm.liveswitch.CandidatePairStats[]  candidatePairs)
static

Serializes an array of candidate pair stats to JSON.

Parameters
candidatePairsThe candidate pairs' stats.