You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jeff Hammerbacher (JIRA)" <ji...@apache.org> on 2010/07/04 03:54:52 UTC
[jira] Updated: (AVRO-544) Allow the HttpServer to serve forever
without a call to Thread.sleep()
[ https://issues.apache.org/jira/browse/AVRO-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Hammerbacher updated AVRO-544:
-----------------------------------
Attachment: AVRO-544.patch
Hey Patrick,
Thanks for the idea. I did the dead-simplest exposing of {{join()}} and it works for me. Now I can do things like:
{code}
HttpServer server = new HttpServer(r, 9090);
server.join();
{code}
instead of:
{code}
HttpServer server = new HttpServer(r, 9090);
Thread.sleep(10000);
{code}
Which is sane. I could be naive in how I expose join(), however, so if someone more familiar with Java servers wants to take a look, please do.
Thanks,
Jeff
> Allow the HttpServer to serve forever without a call to Thread.sleep()
> ----------------------------------------------------------------------
>
> Key: AVRO-544
> URL: https://issues.apache.org/jira/browse/AVRO-544
> Project: Avro
> Issue Type: New Feature
> Components: java
> Reporter: Jeff Hammerbacher
> Assignee: Jeff Hammerbacher
> Attachments: AVRO-544.patch
>
>
> One way would be to expose the join() method on the HttpServer: http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/Server.html#join%28%29
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.