首页 | 本学科首页   官方微博 | 高级检索  
     

用Reactor、Acceptor模式构建CORBA通信层
引用本文:刘轶,李志蜀,陈良银.用Reactor、Acceptor模式构建CORBA通信层[J].西南石油学院学报,2002,24(3):78-81.
作者姓名:刘轶  李志蜀  陈良银
作者单位:四川大学计算机系,四川成都610064
摘    要:CORBA是一种面向对象的分布式计算环境,其核心部分是实现对象间的通信,为了构建通用性高、扩展性强的CORBA通信层,引入了Reactor模式、Acceptor模式。Reactor模式能以单进程来守成并发处理,而Acceptor模式有效地将服务初始化过程与服务处理过程相分离,首先阐述了Reactor模式、Acceptor模式的结构,包括:句柄、同步事件多路分解器、初始分派器、具体事件处理器、Acceptor和服务处理器。然后讲述了该模式的运行过程:如何建立连接以及如何处理服务,接着重点阐述了初始分器、具体事件服务器、Acceptor和服务处理器的实现,并在此基础上说明了该模式的一个特性:并发性;最后总结了该模式的优点和不足。

关 键 词:Reactor模式  Acceptor模式  CORBA  结构  特性
文章编号:1000-2634(2002)03-0078-04
修稿时间:2001年8月21日

Implement the Communication Layer of CORBA with Reactor and Acceptor Patterns
LIU Yi.Implement the Communication Layer of CORBA with Reactor and Acceptor Patterns[J].Journal of Southwest Petroleum Institute,2002,24(3):78-81.
Authors:LIU Yi
Abstract:CORBA is an object-oriented distributed computing environment. The core of CORBA is the communication of object. To construct a reusable and extensible communication layer of CORBA, Reactor and Acceptor patterns were introduced. The Reactor design pattern can handle synchronous events in a process, while the Acceptor design pattern decouples service initialization from service processing. At first, the structures of the patterns including handle, synchronous event demultiplexer, initiation dispatcher, concrete event handle, Acceptor and service handler are elaborated. Then the dynamics of these patterns, how to link and how to process service, was explained. Then the implementation of initiation dispatcher,concrete event handler, Acceptor and service handler was described in this paper. And one of the features of the patterns: concurrency is presented. Finally, the benefits and liabilities of the patterns are discussed.
Keywords:Reactor patterns  Acceptor patterns  CORBA  structure  characteristic    
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号