FLUME-1490: Option to limit number of events sent in Stress source
Review Request #6673 - Created Aug. 17, 2012 and updated
This patch implements a count limit, both for overall (successful + failed) events and for successful events. Seems like both could be useful in testing.
Includes unit test and a bit of code clean-up.