Open rgrouchy opened 10 years ago
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?
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.