jsipp icon indicating copy to clipboard operation
jsipp copied to clipboard

Getting Statistics Directly

Open rgrouchy opened this issue 11 years ago • 1 comments

I am planning to use this JSIPp library via JUnit calling the Java class CallOpeningTask directly - instead of via the command line. In so doing, I would like to be able to access Statistics simply by accessing a getter method in the Statistics class rather having to setup an messaging framework to collect the statistics.

rgrouchy avatar May 21 '14 20:05 rgrouchy

Sounds good, although I think it would be cleaner to have a separate class that listened to the messages the Statistics class sends out.

My thinking is that currently, the Statistics class just publishes statistics and forgets about them. Having that sort of getter method requires more data to be stored permanently in memory, and I'd rather not have every use of the Statistics class pay that memory price, even when you do want that fire-and-forget model.

Make sense?

rkday avatar May 25 '14 18:05 rkday