摘要
提出了一种远程处理框架,其采用Remote Proxy模式,由代理组件和远程处理组件构成。代理组件ProxyClass从抽象类RealProxy派生,其通过持有远程服务接口IServerClass可在客户端中以本地化的方式调用远程服务对象的相关方法;远程处理组件发布远程服务对象,并通过Socket监听来自客户端的链接请求,根据请求内容进行方法调用并返回处理结果;并用序列化、反射和Socket等技术实现了远程方法调用消息通信与处理过程。将远程处理框架应用于高校大学生素质拓展学分管理系统,客户端通过代理组件能够以调用本地对象成员函数的方式调用远程服务对象的函数,验证了其在分布式系统设计中的有效性。
A remote processing framework is presented,which include the remote processing component and the proxy component.In this framework,the transparent proxy of remote service object is realized by using the proxy component in proxy pattern.Furthermore,the message communication and process of the remote method invocation is realized by adopting the techniques such as serialization,reflection and socket.Finally,the framework is applied to the college students ’ diathesis developing credit management system,and the efficiency of the framework to the distributed system design is verified.
出处
《长江大学学报(自科版)(上旬)》
CAS
2013年第7期23-26,160,共4页
JOURNAL OF YANGTZE UNIVERSITY (NATURAL SCIENCE EDITION) SCI & ENG
基金
福建省教育厅科技基金项目(JA11265)
武夷学院科研基金项目(X1201019)