中间件复习笔记

上传人:re****.1 文档编号:548303250 上传时间:2023-03-13 格式:DOCX 页数:35 大小:184.14KB
返回 下载 相关 举报
中间件复习笔记_第1页
第1页 / 共35页
中间件复习笔记_第2页
第2页 / 共35页
中间件复习笔记_第3页
第3页 / 共35页
中间件复习笔记_第4页
第4页 / 共35页
中间件复习笔记_第5页
第5页 / 共35页
点击查看更多>>
资源描述

《中间件复习笔记》由会员分享,可在线阅读,更多相关《中间件复习笔记(35页珍藏版)》请在金锄头文库上搜索。

1、2015 年-11月-13日第一章 INTRO1. 概念ii. 一类独立的系统软件和服务程序iii. A class of standalone system-level software and services proceduresiv. 在操作系统的顶部v. Working on the top of OSvi. 管理计算机资源和网络vii. Managing computational resources and network communicationsviii. 支持分布式通信ix. Supporting distributed appsb) 功能i. 在异构的网络环境中,涉及到

2、跨连通性和可操作问题中ii. 提供统一的协议和接口iii. Providing standardized interfaces and protocolsiv. 隐藏实现细节v. Hiding implementation detailsvi. 提高程序的可移植性vii. Increasing the portability of appsviii. 放置于操作系统和数据库管理系统的顶部ix. 为高级应用的开发和执行提供环境x. Providing environments for the execution and development of higher-level appsxi. 协助

3、软件工程师灵活高效地开发和集成复杂的分布式软件xii. Assisting software engineers in flexibly and efficiently developing and integrating complex distributed softwarec) 中间件发展的主要因素i. 隐藏异构型 Hiding heterogeneity1. 硬件异构 hardware heterogeneity2. 操作系统异构 OS heterogeneity3. 数据库异构 database heterogeneityii. 支持可操作性 supporting inter-ope

4、rability1. 不同的平台 different platforms2. 不同的网络协议 different network protocols3. 不同的通信机制 different communication mechanismsiii. 提高软件的复用率 improving efficiency and quality of software developmentd) 主要类别ii. 对象请求代理中间件 ORB object request brokers middlewareiii. 面向信息中间件 MOM message-oriented middlewareiv. 数据库访问

5、中间件 DAM database access middlewarev. 事务处理中间件 TPM transaction processing middleware第二章 RMIa) 对象请求代理 ORBi. 提供一个框架,使得远程对象可以在网络中以同样的方式使用在网络中的本地 对象ii. Providing a framework where remote object can use local objects in the same way over the networkiii. 当对象在客户端和服务器之间传递时,提供功能的编组和解组的功能iv. Providing functiona

6、lities for marshalling and unmarshaling when objects are transmitted between clients and servers.v. 客户端和服务器之间的传输隐藏实现的细节,这使得开发人员能够有效地实现分布式应用程序,而无需面对复杂的底层操作系统和网络通信vi. Hiding the implementation details,which enable developers to implement distributed apps efficiently without facing the complex underlyi

7、ng operating systems and network communicationsb) JAVA RMI 的概述ii. Writing distributed objects using javaiv. Simple and direct model for distributed computation with java objectsv. 以java为中心,由此带来了安全性和分布式计算的可移植性vi. Centered around java, thus bringing the power of Java Safety and portabilityto distribut

8、ed computingvii. 行为可以被转移动viii. Behavior can be removedix. 通过JNI可以链接到现有的遗留系统x. Connected existed legacy system byJNIxi. 通过 JDBC 可以链接到关系数据库xii. Connected relational database by JDBCc) 优点i. 面向对象 OO1. 全部的对象可以作为参数和返回值2. All objects can be arguments and return valuesii. 可移动性行为 mobile behavior1. 类的实现可以被移植2

9、. The implementations of class can be movediii. 设计模式 design patterns1. 传递性对象确保了面向对象技术的全功率2. Passing objects ensure the full power of OO techs1. 基于JAVA的安全机制:安全经理2. Based on JAVA security mechanisms security managerd) 次优点i. 十分容易开发,使用,维护ii. Easy to write, use and maintainiii. 可以与现存的遗留系统链接 can conn ect

10、with existed legacy system1. RMI/JNI,RMI/JDBCiv. 开发一次,可以在任何地方运行 write once, can be use anywhere1. 100% 移植到任何 JVM 100%portable to any JVMv. 分布式垃圾收集 distributed garbage collectionvi. 并行计算 parallel computing1. 多线程,并行处理 MUTI-thread ,concurrent processinge) 架构 architecturei. 存根stub1. 编组参数,发送调用2. Marshali

11、ng arguments, sending invocationii. 骨骼 skeleton1. 解封参数,调用服务器来实现2. Unmarshalingarguments, invoking servers implementationf) RMI的分布式应用i. 定位远程对象 locate remote objectsii. 与远程对象通信 communicate with remote objectsiii. 为被传递的对象加载类定义 load definitionof classes that are passed aroundg) 远程接口,对象和方法 remote interfa

12、ce,objectsand methodsi. 通过实 现一个具有以下特点的 远程接口 来实现对象远 程化 An objects becomesremote by implementing a remote interface with following characteristics1. 个远程接口扩展了接口 one remote in terface exte nds an in terfacea) Java.rmi.remote2. 接口的每个方法都有事先声明 every methods of the interface has been declareda) Java.rmi.Rem

13、oteException in its throws clauseh) 主要步骤 main stepsi. 定义远程接口 define the remote interfaceremotely1. 可能包括本地接口/方法的实现 may include the implementation of local interface/methodiii. 客户实现 implementing the client1. 在远程接口定义后的任何时间都可以被 实现 can be implemented anytime when the remote interface has been defined第三章

14、JMSa) 面向消息中间件 MOMi. 在异构平台上发送/接收分布式应用软件/组件之间的消息ii. Sending/receiving messages between distributed apps/components over the heterogeneous platforms1. 支持异步调用2. Supporting asynchronous callsiii. 创建一个分布式通信层iv. Create a distribute communication layer1. 避免应用开发者接触来自不同系统和网络接口的细节2. Insulating app developers f

15、rom the details about different OS and network interfacesv. 在不同平台和网络上的API通常是MOM提供的vi. The APIS from different platforms and network are provided by MOMb) 比较1. 异步通信2. Asynchronous communication3. 组件松散耦合4. Loosely-coupled componentsii. RPC/ORB1. 同步通信2. Synchronous communication3. 组件紧密耦合4. Tightly-coupled componentsc) MOM 标准i. 历史上,缺乏 MOM 的准确标准ii. There was a lack of standards in the history.iii. 高级消息队列协议 AMQPiv. Advanced Message Queuing Protocolv. 数据分发服务 DDSvi. Data Distribution Servicevii. 可扩展消息和存在协议 XXMPviii. ex

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号