Computer Engineering and Applications ›› 2014, Vol. 50 ›› Issue (11): 53-57.

Previous Articles     Next Articles

Design and implementation of concurrent document type transfer component based on Web service

HUANG Yajun, WU Zhenqiang, ZHANG Xialei, WEI Renjia   

  1. College of Computer Science, Shaanxi Normal University, Xi’an 710062, China
  • Online:2014-06-01 Published:2015-04-08

基于Web服务的并发文件转换组件的设计与实现

黄亚军,吴振强,张夏蕾,魏刃佳   

  1. 陕西师范大学 计算机科学学院,西安 710062

Abstract: As the diversity of document type causes that systems cannot ensure all of files display normally, file format transform plays a pivotal role in resolution of this problem. However, the concurrent document type transfer function is universally a part of the system as a sub-module, which makes different systems need to develop document type transfer module repeatedly. In this paper, document type transfer component based on Web service is proposed, which enhances the reusability of the component. Moreover, aiming at the multi-core hardware system of computer, concurrent mechanism and command pattern design are given to manage the transfer task in a unified method, which promotes the efficient and throughput of transfer component. The test of deployment illustrates that not only the component can ensure the transform of almost all of video file and part of text file, but also the concurrent design runs normally and improves the efficient of file transform actually.

Key words: Web service, document type transform, concurrency

摘要: 文件格式的多样性使系统不能保证大部分格式的文件都正常播放或显示,文件转换是解决此问题的关键。而目前的文件转换普遍是作为一个子模块集成在系统中,导致不同的系统需要重复开发。提出基于Web服务规范的文件转换组件,实现文件转换的可复用性。此外,针对目前普遍的多核CPU硬件系统,文件转换过程中采用并发机制并且使用命令模式对转换任务的行为统一管理,以此提高转换效率和吞吐量。部署测试表明,该组件可以满足几乎所有视频文件的转换和部分文本文件的转换,并发设计运行正常且能够保证文件转换的效率。

关键词: Web服务, 文件转换, 并发