Collects statistics of an {@link IoService}. It's polling all the sessions of a given IoService. It's attaching a {@link IoSessionStat} object to all the sessions polledand filling the throughput values. Usage :
IoService service = ... StatCollector collector = new StatCollector( service ); collector.start();
By default the {@link StatCollector} is polling the sessions every 5 seconds. You can give a different polling time using a second constructor.
@author The Apache Directory Project (mina-dev@directory.apache.org)
@version $Rev: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $