Re: multiple handlers per IoService

2007-09-30 Thread Mark
Trustin, Shall I open entries in JIRA for a Selector Pool class and a Service worker pool class? Sounds like you are more in tune with what you want to do. I think it would make more sense for you to add in the entry(s). Thanks, Mark On 9/25/07, Trustin Lee [EMAIL PROTECTED] wrote: No, not

Re: multiple handlers per IoService

2007-09-26 Thread Mark
A Selector pool something like: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java On 9/25/07, Trustin Lee [EMAIL PROTECTED] wrote: On 9/25/07, Mark [EMAIL PROTECTED] wrote: Wouldn't it make sense to multiplex a Selector across

Re: multiple handlers per IoService

2007-09-25 Thread Mark
Wouldn't it make sense to multiplex a Selector across multiple channels in order to efficiently manage threads since you can have multiple channels being monitored by one selector. You could have 10 channels, 1 selector in the main thread and 1 I/O thread. Currently, 10 channels would mean 10

Re: multiple handlers per IoService

2007-09-25 Thread Mark
As long as the size of the pool could = 1. Has any work been done on this? Thanks Trustin. -- ..Cheers Mark On 9/25/07, Trustin Lee [EMAIL PROTECTED] wrote: On 9/25/07, Mark [EMAIL PROTECTED] wrote: Wouldn't it make sense to multiplex a Selector across multiple channels in order to

Re: multiple handlers per IoService

2007-09-25 Thread Trustin Lee
No, not yet. It's must to have in 2.0 though. :) Cheers, Trustin On 9/25/07, Mark [EMAIL PROTECTED] wrote: As long as the size of the pool could = 1. Has any work been done on this? Thanks Trustin. -- ..Cheers Mark On 9/25/07, Trustin Lee [EMAIL PROTECTED] wrote: On 9/25/07, Mark

Re: multiple handlers per IoService

2007-09-20 Thread Trustin Lee
On 9/21/07, Gary Helmling [EMAIL PROTECTED] wrote: Mark Webb wrote: I am interested in having one IoAcceptor listen on multiple ports. This acceptor will have one Selector and based on the incoming connection/data, the proper handler will be triggered. This would be pretty useful for

Re: multiple handlers per IoService

2007-09-20 Thread Mark
Trustin, Where can I find more information regarding this sentance: No matter how many acceptor or connector instances are created, the number of I/O threads will be maintained in an optimal number. So if I create 2 SocketAcceptor instances each with different IoHandlers, how can I/MINA

Re: multiple handlers per IoService

2007-09-20 Thread jian wu
restructuring in the trunk? Thanks, Gary -- View this message in context: http://www.nabble.com/multiple-handlers-per-IoService-tf4481513s16868.html#a12799299 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

multiple handlers per IoService

2007-09-19 Thread Mark
Can this be done with MINA now? I would like to put together a framework that will have one Acceptor and register multiple IoHandlerApapters each processing different types of data. -- ..Cheers Mark

Re: multiple handlers per IoService

2007-09-19 Thread Mike Heath
It would also be nice if we had some way of sharing thread pools and selectors between Acceptors and Connectors. It would take quite a bit of refactoring but it may be nice feature to have for those of us building proxies that have multiple acceptors and multiple connectors working in