当前位置:主页 > 科技论文 > 软件论文 >

基于AOP拦截技术的精准信息推送服务研究

发布时间:2018-02-14 16:59

  本文关键词: SSH2 AOP DWR 线程池 出处:《哈尔滨工程大学》2016年硕士论文 论文类型:学位论文


【摘要】:Web技术日益成熟,基于Web的应用软件被应用到各个领域,尤其是Ajax技术的出现,使得Web应用变得更高效、更便捷、交互性更强。在大多数基于B/S模式的Web应用中,由服务器端主动向客户端推送信息的技术被广泛的应用。但是现有的推送技术,耦合度高,并在执行过程中影响系统稳定性,基于以上问题,本课题研究的精准信息推送服务方案应运而生。本方案是基于SSH2框架,针对现有推送技术存在的问题进行分析与研究,设计了一套可实施的、低耦合并且高性能的服务器精准信息推送方案。在此方案中,首先,使用Spring AOP技术,运用面向切面的思想,将服务器的推送服务定义成切面,用户的所有更新操作定义成切入点,并为所有切入点声明一个返回后通知,使得在切面和切入点的实现空间相互独立的情况下,Spring AOP对每一个切入点执行进行拦截,并在切入点成功执行后,直接将切面织入,从而降低推送服务与用户的更新操作的耦合度,提高代码的可读性,便于推送服务的后期维护;其次,使用DWR框架,运用反向Ajax技术,精准记录需要推送的用户信息,并通过远程调用回调函数的方式将推送信息返回到已经记录的推送用户界面,最终实现精准信息推送;最后,使用线程池技术,根据推送任务数量以及当前系统运行状态,动态地批量创建或是销毁可循环执行推送任务的线程,线程池还提供了“缓存”机制和“抛弃”策略,“缓存”机制使没有获得工作线程的任务进行排队等待,“抛弃”策略通过降低提交任务的方式,为没有分配到系统资源的推送任务提供重新提交的机会,从而提高推送服务的执行性能以及保证系统的稳定性。在本方案的实施过程中,可根据项目的具体需求,选择适合的反向Ajax技术,制定合理的线程池管理策略,从而使本方案能适用于不同执行环境的系统中,并且使其执行性能和效率达到最佳状态。
[Abstract]:Web technology is maturing day by day, the application software based on Web is applied to various fields, especially the appearance of Ajax technology, make Web application become more efficient, more convenient, more interactive. In most Web applications based on B / S mode, The technology of actively pushing information from the server to the client is widely used. However, the existing push technology has a high coupling degree and affects the stability of the system in the process of execution. The precision information push service scheme of this research arises at the historic moment. This scheme is based on the SSH2 framework, analyzes and studies the problems existing in the existing push technology, and designs a set of implementable, In this scheme, Spring AOP technology is used to define the push service of the server as a cutting plane, which is based on the idea of section-oriented. All update operations by the user are defined as pointcuts and a post-return notification is declared for all pointcuts, enabling Spring AOP to intercept each pointcut execution when the implementation space of the pointcut and the pointcut is independent of each other. And after the successful implementation of the entry point, directly weaving the cut into the interface, thus reducing the coupling between push service and user update operation, improving the readability of the code, facilitating the later maintenance of push service. Secondly, using DWR framework, By using reverse Ajax technology, the user information needed to be pushed is accurately recorded, and the push information is returned to the recorded user interface by calling the callback function remotely. Finally, the accurate information is pushed. Using thread pool technology, dynamically bulk creates or destroys threads that can be cyclically executed, depending on the number of push tasks and the state of the current system. The thread pool also provides a "cache" mechanism and a "drop" policy, which queues tasks that do not have a worker thread. Provide an opportunity to resubmit push tasks that are not allocated to system resources, thereby improving the performance of push services and ensuring the stability of the system. In the implementation of this programme, the specific needs of the project can be taken into account, The appropriate reverse Ajax technology is selected and a reasonable thread pool management strategy is worked out so that the scheme can be applied to systems with different execution environments and its execution performance and efficiency can reach the best state.
【学位授予单位】:哈尔滨工程大学
【学位级别】:硕士
【学位授予年份】:2016
【分类号】:TP393.09;TP391.3

【相似文献】

相关期刊论文 前10条

1 白雪松;徐汝兴;郑巧英;;数字图书馆的个性化推送服务[J];图书馆杂志;2005年09期

2 高孝梅;;基于聚类分析的图书馆个性化推送服务的实现[J];中小学图书情报世界;2009年02期

3 许雯倩;李娟;;论信息化背景下高校档案推送服务[J];兰台世界;2013年08期

4 ;生命科学图书馆竭诚提供“文献推送服务”[J];生命科学;2003年05期

5 黄红梅;朱慧;;推送服务理念下图书馆网络服务平台优化研究[J];高校图书馆工作;2010年06期

6 左雪梅,马功兰;论网络环境下图书馆的个性化服务[J];大学图书情报学刊;2005年01期

7 栾冠楠;孙金立;梁蜀忠;陈冬梅;;通过手机推送给医务工作者的信息服务[J];现代生物医学进展;2010年15期

8 闻年喜,游大鸣,王素清,孙永盛;利用数字化 开展个性化 缩微影像资源 推送服务[J];数字与缩微影像;2005年01期

9 黄微;高俊峰;王晨;齐s,

本文编号:1511171


资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1511171.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户4bbf6***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com