public class RTPStats
extends java.lang.Thread
Modifier and Type | Method and Description |
---|---|
void |
addRtcpPortToList(java.lang.Integer port)
Add a port to a list to avoid decoding UDP packets from this port as RTP packets.
|
void |
close()
Close RTPStats by stopping thread
|
java.util.ArrayList<ParticipantStats> |
getByeList()
Returns the list of participants which have sent a BYE packet.
|
static RTPStats |
getInstance()
Create or get the single instance of the thread.
|
java.util.ArrayList<ParticipantStats> |
getParticipantsStats()
Update statistics for each participants
|
long[] |
getResults()
Generate statistics for monitoring every seconds.
|
void |
openStats(java.util.ArrayList<java.lang.Integer> listeningPorts)
Open sockets using RTPListener.java
|
void |
run() |
void |
startStats()
Start the thread of the singleton if it hasn't been started yet.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static RTPStats getInstance()
public void openStats(java.util.ArrayList<java.lang.Integer> listeningPorts)
listeningPorts
- : a list of ports to open.public void startStats()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Thread.run()
public long[] getResults()
public java.util.ArrayList<ParticipantStats> getParticipantsStats()
public void close()
public void addRtcpPortToList(java.lang.Integer port)
port
- : the port to add to the RtcpPortListpublic java.util.ArrayList<ParticipantStats> getByeList()