[
https://issues.apache.org/jira/browse/THRIFT-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661725#comment-13661725
]
Hudson commented on THRIFT-1034:
--------------------------------
Integrated in Thrift #646 (See [https://builds.apache.org/job/Thrift/646/])
THRIFT-1034 Java: Add a TNonblockingMultiFetchClient (Revision
15522724f623b98f5e97b442baa47fa28975881e)
Result = SUCCESS
roger :
Files :
* lib/java/src/org/apache/thrift/TNonblockingMultiFetchClient.java
* lib/java/src/org/apache/thrift/TNonblockingMultiFetchStats.java
> Java: Add a TNonblockingMultiFetchClient
> ----------------------------------------
>
> Key: THRIFT-1034
> URL: https://issues.apache.org/jira/browse/THRIFT-1034
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Library
> Environment: Java v1.4 or higher
> Reporter: Xing Jin
> Assignee: Roger Meier
> Attachments: thrift-1034-patch.txt
>
>
> One of our recent projects requires to fetch responses from several hundred
> servers. All servers have similar settings. The client needs to send same
> request to all servers, and then fetch their responses.
> We would like to use non-blocking sockets to implement it, as it is much
> faster than setting up hundreds of blocking sockets. So in this patch, we
> create a client class, which sends a same request to multiple servers (using
> java.nio.selector and non-blocking socket), then fetches response from all
> these servers, and returns results as an array of ByteBuffer. We also pass a
> timeout value to the client, so that when a pre-defined time duration passes,
> the client would shutdown all sockets and return any available responses.
> It assumes all servers are non-blocking servers and all use TFramedTransport.
> We have done many local tests. We could generate some unittest if necessary.
> Appreciate any comments!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira