public interface SipStatistics
| Modifier and Type | Method and Description |
|---|---|
String |
dumpInfo()
Dump all stats to std out.
|
long |
totalAckRequests() |
long |
totalByeRequests() |
long |
totalCancelRequests() |
long |
totalInfoRequests() |
long |
totalInviteRequests()
The total number of SIP INVITE requests processed by the
StreamHandler, which also includes the re-transmitted ones. |
long |
totalOptionsRequests() |
int[] |
totalResponses()
This will return an array with 600 elements, each index representing a
particular response (but with an offset of negative 100).
|
long |
totalSipMessages()
The total number of SIP messages processed by the
StreamHandler. |
long totalSipMessages()
StreamHandler.
This includes re-transmits also.long totalInviteRequests()
StreamHandler, which also includes the re-transmitted ones.long totalAckRequests()
long totalByeRequests()
long totalOptionsRequests()
long totalInfoRequests()
long totalCancelRequests()
int[] totalResponses()
System.out.println("Total 180 responses: " + totalResponses()[180 - 100]);
Here is another example that prints out all responses received and their
count:
final int[] responses = stats.totalResponses();
System.out.println("All responses");
for (final int i = 0; i < responses.length; ++i) {
if (responses[i] > 0) {
System.out.println((i + 100) + ": " + responses[i]);
}
}
Notice how we add 100 to the index as it is printed.String dumpInfo()
Copyright © 2021. All Rights Reserved.