You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Piotr Bartosiewicz (JIRA)" <ji...@apache.org> on 2010/09/17 11:58:33 UTC
[jira] Created: (THRIFT-903) custom ThreadFactory in THsHaServer
custom ThreadFactory in THsHaServer
-----------------------------------
Key: THRIFT-903
URL: https://issues.apache.org/jira/browse/THRIFT-903
Project: Thrift
Issue Type: Improvement
Components: Java - Library
Affects Versions: 0.4
Reporter: Piotr Bartosiewicz
Priority: Minor
THsHaServer uses ThreadPoolExecutor with Executors.defaultThreadFactory(). It would be nice if THsHaServer had a constructor with custom worker threads factory.
The custom factory allows to:
- create a worker threads with other priority than default
- create a worker threads with custom names (usefull when debugging application with more than one thrift server and many threads)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (THRIFT-903) custom ThreadFactory in THsHaServer
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-903.
--------------------------------
Resolution: Fixed
Assignee: Bryan Duxbury
Supplying a custom ExecutorService is now allowed via the Args object.
> custom ThreadFactory in THsHaServer
> -----------------------------------
>
> Key: THRIFT-903
> URL: https://issues.apache.org/jira/browse/THRIFT-903
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Library
> Affects Versions: 0.4
> Reporter: Piotr Bartosiewicz
> Assignee: Bryan Duxbury
> Priority: Minor
> Fix For: 0.6
>
>
> THsHaServer uses ThreadPoolExecutor with Executors.defaultThreadFactory(). It would be nice if THsHaServer had a constructor with custom worker threads factory.
> The custom factory allows to:
> - create a worker threads with other priority than default
> - create a worker threads with custom names (usefull when debugging application with more than one thrift server and many threads)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-903) custom ThreadFactory in THsHaServer
Posted by "Robey Pointer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910797#action_12910797 ]
Robey Pointer commented on THRIFT-903:
--------------------------------------
another way to do this would be to allow a custom ThreadPoolExecutor to be passed in to the constructor. we've been talking about this recently and may have a patch to submit.
> custom ThreadFactory in THsHaServer
> -----------------------------------
>
> Key: THRIFT-903
> URL: https://issues.apache.org/jira/browse/THRIFT-903
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Library
> Affects Versions: 0.4
> Reporter: Piotr Bartosiewicz
> Priority: Minor
> Fix For: 0.6
>
>
> THsHaServer uses ThreadPoolExecutor with Executors.defaultThreadFactory(). It would be nice if THsHaServer had a constructor with custom worker threads factory.
> The custom factory allows to:
> - create a worker threads with other priority than default
> - create a worker threads with custom names (usefull when debugging application with more than one thrift server and many threads)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (THRIFT-903) custom ThreadFactory in THsHaServer
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated THRIFT-903:
---------------------------------
Fix Version/s: 0.6
> custom ThreadFactory in THsHaServer
> -----------------------------------
>
> Key: THRIFT-903
> URL: https://issues.apache.org/jira/browse/THRIFT-903
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Library
> Affects Versions: 0.4
> Reporter: Piotr Bartosiewicz
> Priority: Minor
> Fix For: 0.6
>
>
> THsHaServer uses ThreadPoolExecutor with Executors.defaultThreadFactory(). It would be nice if THsHaServer had a constructor with custom worker threads factory.
> The custom factory allows to:
> - create a worker threads with other priority than default
> - create a worker threads with custom names (usefull when debugging application with more than one thrift server and many threads)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.