Thanks! What I would like to know is the way it collects statistics. Apparently there is no start() or stop() method in order to start worker thread. Could you provide me an example?
Emre -----Original Message----- From: Emmanuel Lécharny [mailto:[email protected]] Sent: Friday, January 24, 2014 9:12 AM To: [email protected] Subject: Re: IoServiceStatistics vs StatCollector Le 1/24/14 7:47 AM, Emre Baykal a écrit : > Hi all, > > Before migrating my application to Mina 2.0.7, I was using 1.1.7 version and > this version was providing StatCollector class. I was using StatCollector > class for collecting stats (by using its start() and stop() methods) and > writing these data into db. However, 2.0.7 version does not have this class. > I found IoSeviceStatistics class but I don't how I can use this as a > reflector of StatCollector. Any help is appreciated. This class offers the fomllowing stats : - readBytesThroughput - writtenBytesThroughput - readMessagesThroughput - writtenMessagesThroughput - largestReadBytesThroughput - largestWrittenBytesThroughput - largestReadMessagesThroughput - largestWrittenMessagesThroughput - readBytes - writtenBytes - readMessages - writtenMessages - lastReadTime - lastWriteTime - lastReadBytes - lastWrittenBytes - lastReadMessages - lastWrittenMessages - scheduledWriteBytes - scheduledWriteMessages The wy it gathers statistics is different from the old StatCollector class in MINA 1.1.7, but it should fit your needs. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
