fm.liveswitch.TransportStats Class Reference

Transport stats. More...

Public Member Functions

fm.liveswitch.CandidatePairStats getActiveCandidatePair ()
 Gets the active candidate pair's stats. More...
 
long getBytesReceived ()
 Gets the number of bytes received. More...
 
long getBytesSent ()
 Gets the number of bytes sent. More...
 
fm.liveswitch.CandidatePairStats getCandidatePair (String candidatePairId)
 Gets a candidate pair by its identifier. More...
 
fm.liveswitch.CandidatePairStats[] getCandidatePairs ()
 Gets the candidate pairs' stats. More...
 
boolean getIsHost ()
 Gets whether the active candidate pair has a host candidate. More...
 
boolean getIsReflexive ()
 Gets whether the active candidate pair has a reflexive candidate. More...
 
boolean getIsRelayed ()
 Gets whether the active candidate pair has a relayed candidate. More...
 
fm.liveswitch.CandidateStats getLocalCandidate (String candidateId)
 Gets a local candidate by its identifier. More...
 
fm.liveswitch.CandidateStats[] getLocalCandidates ()
 Gets the local candidates' stats. More...
 
fm.liveswitch.CertificateStats getLocalCertificate ()
 Gets the local certificate's stats. More...
 
fm.liveswitch.CandidateStats getRemoteCandidate (String candidateId)
 Gets a remote candidate by its identifier. More...
 
fm.liveswitch.CandidateStats[] getRemoteCandidates ()
 Gets the remote candidates' stats. More...
 
fm.liveswitch.CertificateStats getRemoteCertificate ()
 Gets the remote certificate's stats. More...
 
fm.liveswitch.TransportStats getRtcpTransport ()
 Gets the RTCP transport's stats. More...
 
void setActiveCandidatePair (fm.liveswitch.CandidatePairStats value)
 Sets the active candidate pair's stats. More...
 
void setBytesReceived (long value)
 Sets the number of bytes received. More...
 
void setBytesSent (long value)
 Sets the number of bytes sent. More...
 
void setCandidatePairs (fm.liveswitch.CandidatePairStats[] value)
 Sets the candidate pairs' stats. More...
 
void setLocalCandidates (fm.liveswitch.CandidateStats[] value)
 Sets the local candidates' stats. More...
 
void setLocalCertificate (fm.liveswitch.CertificateStats value)
 Sets the local certificate's stats. More...
 
void setRemoteCandidates (fm.liveswitch.CandidateStats[] value)
 Sets the remote candidates' stats. More...
 
void setRemoteCertificate (fm.liveswitch.CertificateStats value)
 Sets the remote certificate's stats. More...
 
void setRtcpTransport (fm.liveswitch.TransportStats value)
 Sets the RTCP transport's stats. More...
 
String toJson ()
 Serializes this to JSON. More...
 
 TransportStats ()
 
- 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...
 

Static Public Member Functions

static fm.liveswitch.TransportStats fromJson (String transportJson)
 Derializes transport stats from JSON. More...
 
static String toJson (fm.liveswitch.TransportStats transport)
 Serializes transport 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

Transport stats.

Constructor & Destructor Documentation

◆ TransportStats()

fm.liveswitch.TransportStats.TransportStats ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.TransportStats.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.TransportStats fm.liveswitch.TransportStats.fromJson ( String  transportJson)
static

Derializes transport stats from JSON.

Parameters
transportJsonThe transport's stats JSON.

◆ getActiveCandidatePair()

fm.liveswitch.CandidatePairStats fm.liveswitch.TransportStats.getActiveCandidatePair ( )

Gets the active candidate pair's stats.

◆ getBytesReceived()

long fm.liveswitch.TransportStats.getBytesReceived ( )

Gets the number of bytes received.

◆ getBytesSent()

long fm.liveswitch.TransportStats.getBytesSent ( )

Gets the number of bytes sent.

◆ getCandidatePair()

fm.liveswitch.CandidatePairStats fm.liveswitch.TransportStats.getCandidatePair ( String  candidatePairId)

Gets a candidate pair by its identifier.

Parameters
candidatePairIdThe candidate pair identifier.

◆ getCandidatePairs()

fm.liveswitch.CandidatePairStats [] fm.liveswitch.TransportStats.getCandidatePairs ( )

Gets the candidate pairs' stats.

◆ getIsHost()

boolean fm.liveswitch.TransportStats.getIsHost ( )

Gets whether the active candidate pair has a host candidate.

◆ getIsReflexive()

boolean fm.liveswitch.TransportStats.getIsReflexive ( )

Gets whether the active candidate pair has a reflexive candidate.

◆ getIsRelayed()

boolean fm.liveswitch.TransportStats.getIsRelayed ( )

Gets whether the active candidate pair has a relayed candidate.

◆ getLocalCandidate()

fm.liveswitch.CandidateStats fm.liveswitch.TransportStats.getLocalCandidate ( String  candidateId)

Gets a local candidate by its identifier.

Parameters
candidateIdThe candidate identifier.

◆ getLocalCandidates()

fm.liveswitch.CandidateStats [] fm.liveswitch.TransportStats.getLocalCandidates ( )

Gets the local candidates' stats.

◆ getLocalCertificate()

fm.liveswitch.CertificateStats fm.liveswitch.TransportStats.getLocalCertificate ( )

Gets the local certificate's stats.

◆ getRemoteCandidate()

fm.liveswitch.CandidateStats fm.liveswitch.TransportStats.getRemoteCandidate ( String  candidateId)

Gets a remote candidate by its identifier.

Parameters
candidateIdThe candidate identifier.

◆ getRemoteCandidates()

fm.liveswitch.CandidateStats [] fm.liveswitch.TransportStats.getRemoteCandidates ( )

Gets the remote candidates' stats.

◆ getRemoteCertificate()

fm.liveswitch.CertificateStats fm.liveswitch.TransportStats.getRemoteCertificate ( )

Gets the remote certificate's stats.

◆ getRtcpTransport()

fm.liveswitch.TransportStats fm.liveswitch.TransportStats.getRtcpTransport ( )

Gets the RTCP transport's stats.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ setActiveCandidatePair()

void fm.liveswitch.TransportStats.setActiveCandidatePair ( fm.liveswitch.CandidatePairStats  value)

Sets the active candidate pair's stats.

◆ setBytesReceived()

void fm.liveswitch.TransportStats.setBytesReceived ( long  value)

Sets the number of bytes received.

◆ setBytesSent()

void fm.liveswitch.TransportStats.setBytesSent ( long  value)

Sets the number of bytes sent.

◆ setCandidatePairs()

void fm.liveswitch.TransportStats.setCandidatePairs ( fm.liveswitch.CandidatePairStats[]  value)

Sets the candidate pairs' stats.

◆ setLocalCandidates()

void fm.liveswitch.TransportStats.setLocalCandidates ( fm.liveswitch.CandidateStats[]  value)

Sets the local candidates' stats.

◆ setLocalCertificate()

void fm.liveswitch.TransportStats.setLocalCertificate ( fm.liveswitch.CertificateStats  value)

Sets the local certificate's stats.

◆ setRemoteCandidates()

void fm.liveswitch.TransportStats.setRemoteCandidates ( fm.liveswitch.CandidateStats[]  value)

Sets the remote candidates' stats.

◆ setRemoteCertificate()

void fm.liveswitch.TransportStats.setRemoteCertificate ( fm.liveswitch.CertificateStats  value)

Sets the remote certificate's stats.

◆ setRtcpTransport()

void fm.liveswitch.TransportStats.setRtcpTransport ( fm.liveswitch.TransportStats  value)

Sets the RTCP transport's stats.

◆ toJson() [1/2]

String fm.liveswitch.TransportStats.toJson ( )

Serializes this to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.TransportStats.toJson ( fm.liveswitch.TransportStats  transport)
static

Serializes transport stats to JSON.

Parameters
transportThe transport's stats.