Re: Fwd: Re: Interesting post about AIO

2013-03-02 Thread Christian Schwarz
Maybe this is an interesting read about AIO too. Its written by one of the jetty developers. http://webtide.intalio.com/2013/02/on-jdk-7-asynchronous-io/ On Sat, Mar 2, 2013 at 5:42 PM, Julien Vermillard jvermill...@gmail.comwrote: Thanks for the pointers Kiran I m going to read it. Julien

[jira] [Created] (DIRMINA-918) Improve the overall quality of MINA3

2012-11-22 Thread Christian Schwarz (JIRA)
Christian Schwarz created DIRMINA-918: - Summary: Improve the overall quality of MINA3 Key: DIRMINA-918 URL: https://issues.apache.org/jira/browse/DIRMINA-918 Project: MINA Issue Type

Re: [MINA 3.0] Idle management

2012-01-24 Thread Christian Schwarz
Hello, will it be possible to disable the Idle detection when i don't need it? In MINA 2 we have 10 Idle-Checker-Threads if we implement 10 different Protocols ( one IOService per Protocol). If we dont need them, they are a wasted resource. So it would be nice to disable the Idle detection.

[jira] [Updated] (DIRMINA-874) Typesafe AttributeKeys

2011-12-16 Thread Christian Schwarz (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-874: -- Attachment: TypeSafeAttributes_v1_2011_12_16.patch Patch File Version 1 16.12.2011

[jira] [Issue Comment Edited] (DIRMINA-874) Typesafe AttributeKeys

2011-12-16 Thread Christian Schwarz (Issue Comment Edited) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13171191#comment-13171191 ] Christian Schwarz edited comment on DIRMINA-874 at 12/16/11 9:13 PM

Re: [MINA 3] heads up

2011-12-13 Thread Christian Schwarz
+1 for all points.. ...and some comments and additions: Javadoc and Unit tests : Same here : lots to do, but definitively mandatory. The Javadoc in MINA 3 is not bad, but need some cleanup. Unit tests, that's clearly an area we should spend some time. Talking about test what about

[jira] [Commented] (DIRMINA-874) Typesafe AttributeKeys

2011-12-06 Thread Christian Schwarz (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13163682#comment-13163682 ] Christian Schwarz commented on DIRMINA-874: --- I may reconsider using your

[jira] [Created] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Created) (JIRA)
: Christian Schwarz In Mina 2 we can add attributes to a session and get them as well. Because IoSession#getAttribute(Object key) returns Object we always have to remember what attribute type is associated with the key and cast the result to the expected type. Mina 2 example: final static Object

[jira] [Updated] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-874: -- Description: In Mina 2 we can add attributes to a session and get them as well

[jira] [Updated] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-874: -- Description: In Mina 2 we can add attributes to a session and get them as well

[jira] [Commented] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13162793#comment-13162793 ] Christian Schwarz commented on DIRMINA-874: --- Some hasty notes on the MINA 2 API

[jira] [Updated] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-874: -- Attachment: mina3.zip I've made an initial imlementation of typesafe attributes keys

[jira] [Issue Comment Edited] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Issue Comment Edited) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13162796#comment-13162796 ] Christian Schwarz edited comment on DIRMINA-874 at 12/5/11 2:19 PM

Re: [MINA 3] Session attributes

2011-12-05 Thread Christian Schwarz
Hi, I would suggest that we don't use the AttributeKey class at all, and instead, define each internal MINA Attribute by prefixing them with '__'. For instance, the SslContext would use the '__SslContext' key. The rational is that there is no reaon to use complex key, even if we have some

[jira] [Commented] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13162813#comment-13162813 ] Christian Schwarz commented on DIRMINA-874: --- The fact that we can't distinguish

Re: [MINA 3] Session attributes

2011-12-05 Thread Christian Schwarz
What about mixing both mode ? A String, Value mode for simple usage, and a typesafe mode, as you suggested (that means we will have two different kind of map to store both elements). I think two modes is one mode to much, it would confuse the user and the typesafe aspect would be underminded

[jira] [Issue Comment Edited] (DIRMINA-874) Typesafe AttributeKeys

2011-12-05 Thread Christian Schwarz (Issue Comment Edited) (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13162813#comment-13162813 ] Christian Schwarz edited comment on DIRMINA-874 at 12/5/11 2:55 PM

Re: [MINA 3] Session attributes

2011-12-05 Thread Christian Schwarz
As a user, having to create a new instance to hold the key and value might be seen as heavy, don't you think ? session.set(new AttributeKeyString(String.** class,myKey),myAttribute); is a bit more complex than session.set( myKey, myAttribute ); Or is it just me ? It's true for your

Re: [MINA 3] IoBuffer

2011-11-27 Thread Christian Schwarz
On Sat, Nov 26, 2011 at 1:39 AM, Emmanuel Lecharny elecha...@gmail.comwrote: Hi guys, Hi Emmanuel, Feel free to comment... ...here we go! Using the 2 MINA IoBuffer is difficult for us because the documentation of it is too hard to reach. JavaDoc's like @see # xy ByteBuffer (..) only makes

Re: [MINA 3] IoBuffer

2011-11-27 Thread Christian Schwarz
, Christian Schwarz chriss@googlemail.com wrote: On Sat, Nov 26, 2011 at 1:39 AM, Emmanuel Lecharny elecha...@gmail.comwrote: Hi guys, Hi Emmanuel, Feel free to comment... ...here we go! Using the 2 MINA IoBuffer is difficult for us because the documentation of it is too hard to reach

Re: RE : [Mina 3] Wishlist

2011-11-18 Thread Christian Schwarz
Christian Schwarz

[Mina 3][Wishlist] Typesafe attribute keys

2011-11-18 Thread Christian Schwarz
In Mina 2 we can add attributes to a session and get them as well. Because IoSession#getAttribute(Object key) returns Object we always have to remember what attribute type is associated with the key and cast the result to the expected type. Mina 2 example: final static Object KEY = new

[Mina 3][Wishlist] remove IoBuffer#getObject()

2011-11-18 Thread Christian Schwarz
Somewere i read that the class IoBuffer will not be used in Mina 3 anymore, if not the methods IoBuffer#getObject() /IoBuffer#putObject() should be removed ! I think it's better to use a dedicated SerialisationDe-/Encoder. It is difficult to imagine what exactly happens when you have no 

Re: Re: [Mina 3][Wishlist] Typesafe attribute keys

2011-11-18 Thread Christian Schwarz
Salute Julien ! Sure it's improving the typing, but does it really simplify the code ? When I wrote simplification I was referring to the unnecessary cast, that is required in mina 2. My proposal is not simpler that the current mina 3 implementation. Infact the user have to do a bit more

Re: Re: [Mina 3][Wishlist] Typesafe attribute keys

2011-11-18 Thread Christian Schwarz
On Fri, Nov 18, 2011 at 3:22 PM, Julien Vermillard jvermill...@gmail.comwrote: Just an idea, in place of building an AttributeKey objct perhaps we can do : session.addParameter(MyClass.class,thekey,theValue); and Myclass myClass = session.getParameter(thekey); WDYT ? Setting is safe,

[Mina 3] Wishlist

2011-11-17 Thread Christian Schwarz
regards Christian Schwarz

[jira] [Updated] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-27 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-831: -- Attachment: DIRMINA-831.avi NioSocketConnector create unused Connections, even when

[jira] [Commented] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-27 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13025685#comment-13025685 ] Christian Schwarz commented on DIRMINA-831: --- Hi, i attached a short screencast

[jira] [Commented] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-27 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13025699#comment-13025699 ] Christian Schwarz commented on DIRMINA-831: --- Thats interesting ! While

[jira] [Updated] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-26 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-831: -- Attachment: DIRMINA-831.jpg NioSocketConnector create unused Connections, even when

[jira] [Commented] (DIRMINA-830) Unconditional wait() in Read- and WriteWorker of SerialSessionImpl

2011-04-26 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13025219#comment-13025219 ] Christian Schwarz commented on DIRMINA-830: --- During the last week we tried our

[jira] [Created] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-21 Thread Christian Schwarz (JIRA)
: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.2 Environment: win32, x86, winXP Reporter: Christian Schwarz Hello, we are using Mina to access different types of network devices (Webcams, Digital-IO-Boxes, Access Control Systems

[jira] [Commented] (DIRMINA-831) NioSocketConnector create unused Connections, even when #connect(..) is not called.

2011-04-21 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13022689#comment-13022689 ] Christian Schwarz commented on DIRMINA-831: --- You can simply reproduce

[jira] [Commented] (DIRMINA-653) IoSession.write not thread-safe? Loosing messages under heavy multi-threaded write on same session.

2011-04-18 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13020955#comment-13020955 ] Christian Schwarz commented on DIRMINA-653: --- Yes, the BufferDataException

[jira] [Created] (DIRMINA-830) Unconditional wait() in Read- and WriteWorker of SerialSessionImpl

2011-04-18 Thread Christian Schwarz (JIRA)
Components: Transport Affects Versions: 2.0.2 Environment: win32 x86 Reporter: Christian Schwarz The inner worker classes of SerialSessionImpl violates the guarded block contract for Object#wait(). Under certain conditions it is possible that a session write

[jira] [Commented] (DIRMINA-653) IoSession.write not thread-safe? Loosing messages under heavy multi-threaded write on same session.

2011-04-15 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13020311#comment-13020311 ] Christian Schwarz commented on DIRMINA-653: --- It took the whole week

[jira] [Commented] (DIRMINA-653) IoSession.write not thread-safe? Loosing messages under heavy multi-threaded write on same session.

2011-04-11 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13018312#comment-13018312 ] Christian Schwarz commented on DIRMINA-653: --- @Emmanuel Sometimes i get

[jira] [Commented] (DIRMINA-653) IoSession.write not thread-safe? Loosing messages under heavy multi-threaded write on same session.

2011-04-05 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13015801#comment-13015801 ] Christian Schwarz commented on DIRMINA-653: --- Hi Yannick, thanks for pointing

[jira] Updated: (DIRMINA-813) Starvation occures sometimes in SerialSession#close()

2011-01-26 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-813: -- Affects Version/s: (was: 2.0.0) 2.0.2 Starvation occures

[jira] Commented: (DIRMINA-813) Starvation occures sometimes in SerialSession#close()

2010-12-10 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12970165#action_12970165 ] Christian Schwarz commented on DIRMINA-813: --- Workaround 1 Closing from

[jira] Commented: (DIRMINA-813) Starvation occures sometimes in SerialSession#close()

2010-12-10 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12970168#action_12970168 ] Christian Schwarz commented on DIRMINA-813: --- Workaround 2 Hack the IOLock

[jira] Updated: (DIRMINA-813) Starvation occures sometimes on SerialSession#close()

2010-12-02 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-813: -- Comment: was deleted (was: here is our code snipped: CloseFuture future

[jira] Updated: (DIRMINA-813) Starvation occures sometimes on SerialSession#close()

2010-12-02 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-813: -- Description: It seems that an Starvation occures sometimes when we call close(true

[jira] Updated: (DIRMINA-813) Starvation occures sometimes on SerialSession#close()

2010-12-02 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-813: -- Comment: was deleted (was: corrected some details) Starvation occures sometimes

[jira] Updated: (DIRMINA-813) Starvation occures sometimes in SerialSession#close()

2010-12-02 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schwarz updated DIRMINA-813: -- Description: It seems that an starvation occures sometimes when we call close(true

[jira] Created: (DIRMINA-813) Starvation occures sometimes on SerialSession#close()

2010-12-01 Thread Christian Schwarz (JIRA)
: Transport Affects Versions: 2.0.0 Environment: OS: Win32 XP-Pro rxtx Version :2.1.7.4_v20071016 Reporter: Christian Schwarz It seems that an Starvation occures sometimes when we call close() on a SerialSession, the Methode never returns. We observed our Application

[jira] Commented: (DIRMINA-813) Starvation occures sometimes on SerialSession#close()

2010-12-01 Thread Christian Schwarz (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12965715#action_12965715 ] Christian Schwarz commented on DIRMINA-813: --- here is our code snipped