Sounds good!
Trustin Lee wrote:
On 6/9/06, Julien Vermillard <[EMAIL PROTECTED]> wrote:
Well I don't see how I can calculate throughput on a event driven way
(on the msgSent & msgRcv IoHandler methods). Actualy it's every n
seconds I look at the sent/rcved bytes and calculate the byte per
seconds throughput. I can still make an Iohandler which is spawing a
timer thread for make throughput calculations, but it's not much more
interesting than doing it in the MBean (except perhaps for people who
don't want to use JMX).
Any idea is welcome :)
You're correct. IoFilter chain is not the right place for this feature.
But putting the performance statistics calculation code only on the JMX
page
might be inappropriate if people wants to use this feature with other
technologies. Perhaps we need org.apache.mina.profiler package and provide
a JMX wrapper for it? At least we need a nice data structure to store all
kind of performance stats. Let's keep discussing on this issue.
Trustin