摘要
文件格式的多样性使系统不能保证大部分格式的文件都正常播放或显示,文件转换是解决此问题的关键。而目前的文件转换普遍是作为一个子模块集成在系统中,导致不同的系统需要重复开发。提出基于Web服务规范的文件转换组件,实现文件转换的可复用性。此外,针对目前普遍的多核CPU硬件系统,文件转换过程中采用并发机制并且使用命令模式对转换任务的行为统一管理,以此提高转换效率和吞吐量。部署测试表明,该组件可以满足几乎所有视频文件的转换和部分文本文件的转换,并发设计运行正常且能够保证文件转换的效率。
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 submodule, 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 effi-cient of file transform actually.
出处
《计算机工程与应用》
CSCD
2014年第11期53-57,61,共6页
Computer Engineering and Applications
基金
国家自然科学基金面上项目(No.61173190)
大学生创新性实验计划项目(No.992739)
关键词
WE
b服务
文件转换
并发
Web service
document type transform
concurrency