You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2006/03/12 10:25:53 UTC
[jira] Created: (DIRMINA-190) ThreadModel interface which
encapsulates ThreadPoolFilter composition.
ThreadModel interface which encapsulates ThreadPoolFilter composition.
----------------------------------------------------------------------
Key: DIRMINA-190
URL: http://issues.apache.org/jira/browse/DIRMINA-190
Project: Directory MINA
Type: New Feature
Reporter: Trustin Lee
Assigned to: Trustin Lee
Priority: Minor
Fix For: 0.9.3
Since ServiceRegistry has been removed from the core API, users had to add ThreadPoolFilters manually. It would be great if there's a way to configure ThreadPoolFilters more easily. My suggestion is add a ThreadModel interface. Here's an example:
acceptor.getConfig().setThreadModel( ThreadModel.MANUAL ); // Single thread mode
acceptor.getConfig().setThreadModel( new PooledThreadModel( "LDAP", 16 ) ); // One thread pool with max. 16 threads.
The default property will be: new PooledThreadModel( "AnonymousIoService", 16 ). This means you have to change your code to retain the previous thread pool composition:
* call setThreadModel( ThreadModel.MANUAL ),
* or remove your code that adds a thread pool filter.
--
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
[jira] Closed: (DIRMINA-190) ThreadModel interface which
encapsulates ThreadPoolFilter composition.
Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRMINA-190?page=all ]
Trustin Lee closed DIRMINA-190:
-------------------------------
Resolution: Fixed
Done:
http://svn.apache.org/viewcvs?rev=385262&view=rev
http://svn.apache.org/viewcvs?rev=385263&view=rev
http://svn.apache.org/viewcvs?rev=385266&view=rev
> ThreadModel interface which encapsulates ThreadPoolFilter composition.
> ----------------------------------------------------------------------
>
> Key: DIRMINA-190
> URL: http://issues.apache.org/jira/browse/DIRMINA-190
> Project: Directory MINA
> Type: New Feature
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Priority: Minor
> Fix For: 0.9.3
>
> Since ServiceRegistry has been removed from the core API, users had to add ThreadPoolFilters manually. It would be great if there's a way to configure ThreadPoolFilters more easily. My suggestion is add a ThreadModel interface. Here's an example:
> acceptor.getConfig().setThreadModel( ThreadModel.MANUAL ); // Single thread mode
> acceptor.getConfig().setThreadModel( new PooledThreadModel( "LDAP", 16 ) ); // One thread pool with max. 16 threads.
> The default property will be: new PooledThreadModel( "AnonymousIoService", 16 ). This means you have to change your code to retain the previous thread pool composition:
> * call setThreadModel( ThreadModel.MANUAL ),
> * or remove your code that adds a thread pool filter.
--
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
[jira] Commented: (DIRMINA-190) ThreadModel interface which
encapsulates ThreadPoolFilter composition.
Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRMINA-190?page=comments#action_12370061 ]
Trustin Lee commented on DIRMINA-190:
-------------------------------------
More change:
http://svn.apache.org/viewcvs?rev=385269&view=rev
> ThreadModel interface which encapsulates ThreadPoolFilter composition.
> ----------------------------------------------------------------------
>
> Key: DIRMINA-190
> URL: http://issues.apache.org/jira/browse/DIRMINA-190
> Project: Directory MINA
> Type: New Feature
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Priority: Minor
> Fix For: 0.9.3
>
> Since ServiceRegistry has been removed from the core API, users had to add ThreadPoolFilters manually. It would be great if there's a way to configure ThreadPoolFilters more easily. My suggestion is add a ThreadModel interface. Here's an example:
> acceptor.getConfig().setThreadModel( ThreadModel.MANUAL ); // Single thread mode
> acceptor.getConfig().setThreadModel( new PooledThreadModel( "LDAP", 16 ) ); // One thread pool with max. 16 threads.
> The default property will be: new PooledThreadModel( "AnonymousIoService", 16 ). This means you have to change your code to retain the previous thread pool composition:
> * call setThreadModel( ThreadModel.MANUAL ),
> * or remove your code that adds a thread pool filter.
--
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