|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.ow2.clif.probe.rtp.RTPStats
public class RTPStats
Thread to return statistics about RTP. To calculate jitter, please refer to RFC 3550.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
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. 0 : Packets number 1 : Cumulative number of packets lost 2 : Minimum of time jitter. 3 : Maximum of time jitter. 4 : Average of time jitter. 5 : Standard deviation of time jitter. 6 : Number of jumped packets per second. 7 : Number of inverted packets per second. |
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. |
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |