Extract Reactor from Acceptor and Connector like ACE in C++.
------------------------------------------------------------
Key: DIRMINA-194
URL: http://issues.apache.org/jira/browse/DIRMINA-194
Project: Directory MINA
Type: Improvement
Reporter: Xu Liang
Priority: Trivial
I'm a programmer in C++ and JAVA. In C++ I have used ACE (The ADAPTIVE
Communication Environment, http://www.cs.wustl.edu/~schmidt/ACE.html) as my
network framework for five years. I like ACE. I had tried to implement my NIO
network framework like ACE in JAVA. But after I found MINA, I decided to adopt
it because it has the beautiful filter mechanism. But the Reactor of ACE, which
was discussed in "Pattern-Oriented Software Architecture: Patterns for
Concurrent and Networked Objects", is better than the worker of MINA. The
Reactor can encapsulate the thread and Selector. The Acceptor and Connector
accept a Reactor as parameter. In this way the user can reuse the thread in
Acceptor, Connector and Processor. The IoHandler can work in single thread. In
addition the Reactor works as a timer like the idle timer in MINA. The
IoHandler can schedule some timer tasks and process timer events in same thread
as network events and user can enjoy the simple and effective source code in
single thread.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira