Graylog2/graylog2-server — pull request #107 by smasset (2012-12-16 07:52:32+00:00)
Title: Refactor counters

Implementation of pull request #2 on graylog2-plugin-interfaces :
- Use a separate MessageCounter for throughput instead of element in MessageCounter.
- Use new Counter objects instead of native int values in MessageCounter.

Plus keeping original message timestamps in MessageCounterImpl to allow parsing of old messages.

This is mainly untested (apart from already written JUnit tests) as things have pilled up at work but should be OK. The RC release also made me push this pull request (no pun intended) before I could test this thoroughly at work.