Collects statistics of an
org.apache.mina.common.IoService . It's polling all the sessions of a given
IoService. It's attaching a
org.apache.mina.management.IoSessionStat object to all the sessions polled
and filling the throughput values.
Usage :
IoService service = ...
MINAStatCollector collector = new MINAStatCollector( service );
collector.start();
By default the
org.apache.mina.management.MINAStatCollector is polling the sessions every 5 seconds. You can
give a different polling time using a second constructor.
Note: This class is a spin-off from StatCollector present in
https://svn.apache.org/repos/asf/mina/branches/1.1/core/src/main/java/org/apache/mina/management.
author: The Apache Directory Project (mina-dev@directory.apache.org) version: $Rev: 477648 $, $Date: 2006-11-21 04:33:38 -0800 (Tue, 21 Nov 2006) $ |