Data stream stats. More...
Public Member Functions | |
DataStreamStats () | |
long | getBytesReceived () |
Gets the number of bytes received. More... | |
long | getBytesSent () |
Gets the number of bytes sent. More... | |
fm.liveswitch.DataChannelStats | getChannel () |
Gets the first channel's stats. More... | |
fm.liveswitch.DataChannelStats | getChannel (String channelId) |
Gets a channel by its identifier. More... | |
fm.liveswitch.DataChannelStats[] | getChannels () |
Gets the channels' stats. More... | |
fm.liveswitch.DataChannelStats | getDataChannel () |
Gets the first channel's stats. More... | |
fm.liveswitch.DataChannelStats | getDataChannel (String dataChannelId) |
Gets a channel by its identifier. More... | |
fm.liveswitch.DataChannelStats[] | getDataChannels () |
Gets the channels' stats. More... | |
long | getMessagesReceived () |
Gets the number of messages received. More... | |
long | getMessagesSent () |
Gets the number of messages sent. More... | |
String | toJson () |
Serializes this to JSON. More... | |
Public Member Functions inherited from fm.liveswitch.StreamStats | |
boolean | getIsHost () |
Gets whether the transport's active candidate pair has a host candidate. More... | |
boolean | getIsReflexive () |
Gets whether the transport's active candidate pair has a reflexive candidate. More... | |
boolean | getIsRelayed () |
Gets whether the transport's active candidate pair has a relayed candidate. More... | |
fm.liveswitch.TransportStats | getTransport () |
Gets the transport's stats. More... | |
fm.liveswitch.StreamType | getType () |
Gets the type. 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... | |
Static Public Member Functions | |
static fm.liveswitch.DataStreamStats | fromJson (String dataStreamJson) |
Derializes data stream stats from JSON. More... | |
static fm.liveswitch.DataStreamStats[] | fromJsonArray (String dataStreamsJson) |
Derializes an array of data stream stats from JSON. More... | |
static String | toJson (fm.liveswitch.DataStreamStats dataStream) |
Serializes data stream stats to JSON. More... | |
static String | toJsonArray (fm.liveswitch.DataStreamStats[] dataStreams) |
Serializes an array of data stream 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.StreamStats | |
StreamStats () | |
Protected Member Functions inherited from fm.liveswitch.BaseStats | |
BaseStats () | |
Data stream stats.
fm.liveswitch.DataStreamStats.DataStreamStats | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.StreamStats.
|
static |
Derializes data stream stats from JSON.
dataStreamJson | The data stream's stats JSON. |
|
static |
Derializes an array of data stream stats from JSON.
dataStreamsJson | The data streams' stats JSON. |
long fm.liveswitch.DataStreamStats.getBytesReceived | ( | ) |
Gets the number of bytes received.
long fm.liveswitch.DataStreamStats.getBytesSent | ( | ) |
Gets the number of bytes sent.
fm.liveswitch.DataChannelStats fm.liveswitch.DataStreamStats.getChannel | ( | ) |
Gets the first channel's stats.
fm.liveswitch.DataChannelStats fm.liveswitch.DataStreamStats.getChannel | ( | String | channelId | ) |
Gets a channel by its identifier.
channelId | The channel identifier. |
fm.liveswitch.DataChannelStats [] fm.liveswitch.DataStreamStats.getChannels | ( | ) |
Gets the channels' stats.
fm.liveswitch.DataChannelStats fm.liveswitch.DataStreamStats.getDataChannel | ( | ) |
Gets the first channel's stats.
fm.liveswitch.DataChannelStats fm.liveswitch.DataStreamStats.getDataChannel | ( | String | dataChannelId | ) |
Gets a channel by its identifier.
dataChannelId | The channel identifier. |
fm.liveswitch.DataChannelStats [] fm.liveswitch.DataStreamStats.getDataChannels | ( | ) |
Gets the channels' stats.
long fm.liveswitch.DataStreamStats.getMessagesReceived | ( | ) |
Gets the number of messages received.
long fm.liveswitch.DataStreamStats.getMessagesSent | ( | ) |
Gets the number of messages sent.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.StreamStats.
String fm.liveswitch.DataStreamStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes data stream stats to JSON.
dataStream | The data stream's stats. |
|
static |
Serializes an array of data stream stats to JSON.
dataStreams | The data streams' stats. |