mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jian wu" <hellojia...@gmail.com>
Subject Re: Using org.apache.mina.management.IoSessionStat and StatCollector?
Date Sun, 08 Oct 2006 05:09:43 GMT
Hi Trustin,

> Yes, it is.  I think providing a constructor parameter that enables auto
> start is a good idea though.  I created a JIRA issue regarding it:
>
> http://issues.apache.org/jira/browse/DIRMINA-280

Great! It would be much easier for people to use it.

Alternatively, you might want to consider implementing MBeanRegistration
interface, then you can call "startCollectingStats()" in postRegister() method
and call "stopCollectingStats()" in preDeregister() method.

Thanks a lot!

Jian

On 10/7/06, Trustin Lee <trustin@gmail.com> wrote:
> Hi Jian,
>
> On 10/7/06, jian wu <hellojianwu@gmail.com> wrote:
> >
> > Hi Julien and Trustin,
> >
> > Thanks a lot for your quick reply and pointing me to
> > org.apache.mina.integration.jmx classes.
> >
> > I looked into both IoSessionManager and IoServiceManager
> > and associated package.html. Just one more detailed
> > question following the code snippet in package.html:
> > ======================================
> > IoServiceManager iosm = new IoServiceManager(acceptor);
> >     MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
> >     ObjectName name = new ObjectName(
> > "com.acme.test:type=IoServiceManager,name=MyMINAServer" );
> >     mbs.registerMBean( iosm, name );
> > ======================================
> >
> > Is it intended that "IoServiceManagerMBean.startCollectingStats()"
> > should be called through remote JMX Client to start/stop collecting
> > statistics?
>
>
> Yes, it is.  I think providing a constructor parameter that enables auto
> start is a good idea though.  I created a JIRA issue regarding it:
>
> http://issues.apache.org/jira/browse/DIRMINA-280
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP key fingerprints:
> * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
>
>

Mime
View raw message