I-码头或码头 [英] I-Jetty or Jetty

查看:162
本文介绍了I-码头或码头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序能够在Android设备托管。我目前使用可用的Andr​​oid SDK中的模拟器。我的应用程序将提供静态和动态数据。我目前使用的码头版本6.1.22。我想问问这将是一个更好的选择使用。 1.码头网络服务器与扒掉code。 2. I-码头。

I have a web application to be hosted on android device. I am currently using the emulator available with android sdk. My application will serve both static as well as dynamic data. I am currently using jetty version 6.1.22. I wanted to ask what will be a better option to be used. 1. Jetty webserver with stripped off code. 2. I-Jetty.

我的应用程序使用以下功能 -

My application uses following features-

  • ResourceHandler服务静态资源。
  • 在通用的servlet服务的同步数据请求。
  • 的扩展,CometServlet服务异步数据请求。

我很期待下面的标准进行比较。

I am looking forward to following criteria for comparison.

  • 应用程序的大小。 APK的大小将包含code。
  • 30请求/秒的最大负载下
  • 内存和CPU使用率。这些都是发生极少数时间在应用程序生命周期短脉冲。平均负荷将接近5个请求/秒。
  • 易于维护。包括码头的应用具有重要的升级。
  • 在其他任何的副作用,我可能我错过了在。
  • Application size. Size of apk which will contain the code.
  • Memory and CPU usage under a maximum load of 30 requests/sec. These are short bursts which occur very few times in app-life cycle. The average load would be approximately 5 requests/sec.
  • Ease of maintenance. Including important upgrades of Jetty in application.
  • Any other side-effects which I probably am missing out at.

推荐答案

我也一直在寻找在应用程序中嵌入的I-Jetty服务器的信息。像原来的海报,我需要为静态和动态资源。我发现下面的帖子是一个有益的开端:

I too have been searching for information on embedding the i-Jetty server in an application. Like the original poster, I need to serve both static and dynamic resources. I found the following post to be a helpful start:

<一个href="http://puregeekjoy.blogspot.com/2011/06/running-embedded-jetty-in-android-app.html">http://puregeekjoy.blogspot.com/2011/06/running-embedded-jetty-in-android-app.html

我注意到,在寻找关于Android应用程序,很多反应,而不是提供一个有用的答案,斥责原来的海报想要做的手机这样的事情嵌入Web服务器的答案。然后,他们继续给所有的理由都不到。只是有手机在那里超过Android设备。我的项目涉及了这样的设备。感谢您就这个问题和其他网站引导我在我的努力,所有有用的答案。我希望我提供的链接可以帮助其他的搜索。

I notice that in searching for answers about embedding a web server in an Android app that many responders, rather than providing a helpful answer, chide the original poster for wanting to do such a thing "in a phone". They then proceed to give all the reasons not to. There are more Android devices out there than just phones. My project involves just such a device. Thanks for all the helpful answers on this and other sites that guided me in my efforts. I hope the link I provided helps other searchers.

这篇关于I-码头或码头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆