目的:

  通过本文,可以加深对Java RMI的理解,知道它的工作原理,怎么使用等. 也为了加深我自己的理解,故整理成文.不足之处,还望指出.

概念解释:

RMI(RemoteMethodInvocation):远程方法调用,顾名思义,通过远程的方式调用非本地对象的方法并返回结果。使用远程调用通常解决本地计算瓶颈问题,例如分布式记算,最近很火的阿尔法狗人机大战,据说运算使用上千个CPU。

JRMP(java remote method protocol):java远程方法协议,这是完成java到java远程调用的协议,基于TCP协议。

stub与skeleton:这两个概念下面会用到,这里解释下,skeleton是放在服务端的代理,它知道真正的对象在哪。stub是放在客户端的代理,它记录了查找和调用skeleton信息。理解成远程对象引用也成.

容易混淆的概念:

  远程方法调用与远程过程调用的区别:远程方法调用是java独有的,基于JRMP对象流协议实现,支持传输java序列化对象。远程过程调用是基于socket技术实现的,不能传输java对象,socket套接字协议支持多种语言。它们都是基于TCP协议传输。远程方法调用传输的是java序列化对象和基本数据类型,而远程过程调用不支持传输对象。

RMI调用模型:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu0AAAIKCAIAAAAYneYKAAAgAElEQVR4nOzdf0wbd7ovfnSj3JzcNKe35+Rk03yz2Ww2bcJGKWHTbSjJUprQZRNCKCU0hLqEUkJKHJZSh5I6LnEci0uFEPK6FFllCfVxiZcKeVlqWcgqiyilCUUlkYUQQmgRayHkWqyQhZBlWfP94+N8znQ8NnaKZzzm/dIoMs74BzPPvHnmdxIDAAAAIE1JYn8BAAAAgMeEPgYAAACkCn0MAAAASBX6GAAAAJAq9DEAAAAgVehjAAAAQKrQxwAAAIBUoY8BAAAAqUIfAwAAAFKFPgYAAACkCn0MAAAASBX6GAAAAJAq9DEAAAAgVehjAAAAQKrQxwAAAIBUoY8BAAAAqUIfAwAAAFKFPgYAAACkCn0MAAAASBX6GAAAAJAq9DEAAAAgVehjAAAAQKrQx8RcEoitr69P7CoA4BJ7sQAkQ4JAHxNzSUlJjEODQawhKSnpiS3/59tvvxW7EAB+BMmAZIA1gT4m5pBWoqfVf/+/gm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5VKRSblKKXm5ubsOTr2M2YAuBs5BrhGGlJIsVhsa2uzu0ace2VoyR4JuirHSFD48OGD1rpSqWxubtbrdRm7cY4iSYdKMBjUWsuzW6LR6MrKSnd398jIiMSIO3fu2PWPj49lrEcGjLTWZ2dnWmsZ9AkGg/Z6JY/HMz4+3vAZP3/+XCgUDg8PM5lMQ0eRdkza1VrLOFS5XN7a2mroMbr41dk5TGu9vb0tj7cB4G7kGMC10ul0a2ur82eJCoVCf3+/DME4a0r/SjKZ1OdJaG1tzZ5Rq7WW6NPwo0XZbPbBgwfOLZlMZnp6Wp0vnJbOGHsht1BK5XK5er0uD49xxiO7QjqdLpVKP//8s/wWgf1x5L2VSqWNjY2nT596vV77mX4y9iRlGVoaGhr6a98bAIOQYwDXuvSHFU9OTpwB5e9wLoG+dPs3f9nx0gq5XK5QKFz1E5XS8QMAghwDAABMRY4BAACmIscAAABTkWMAAICpyDEAAMBU5BgAAGAqcgwAADAVOQYAAJiKHAMAAExFjgEAAKYixwAAAFORYwAAgKnIMQAAwFTkGAAAYCpyDAAAMBU5BgAAmIocAwAATEWOAQAApiLHAAAAU5FjAACAqcgxAADAVOQYAABgKnIMAAAwFTkGAACYihwDAABMRY4BAACmIscAAABTkWMAAICpyDEAAMBU5BgAAGAqcgwAADAVOQYAAJiKHAMAAExFjgEAAKYixwAAAFORYwAAgKnIMQAAwFTkGAAAYCpyDAAAMBU5BgAAmIocAwAATEWOAQAApiLHAAAAU/0bmHB7wF60vN0AAAAASUVORK5CYII=" alt="" />

从宏观看,想要远程调用需要做两件事情,1,服务端向本地对象注册表中注册能被调用的远程对象. 2,客户端向远程对象注册表请求远程对象的引用.

Java中RMI实现:

先通过一个例子了解Java中RMI是怎么用的,然后再根据代码分析源码是如何实现的.

1,先创建远程对象接口,继承自Remote(稍后源码中有分析为什么要有这个接口)

package remote.test;

import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* 远程接口,实现Remote
* @author lxz
*
*/
public interface IRemote extends Remote{ public String show()throws RemoteException;//声明方法
}

2,接口实现,需要继承UnicastRemoteObject类,等会分析

package remote.test;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject; /**
* 远程接口实现,继承UnicastRemoteObject
* @author lxz
*
*/
public class RemoteImpl extends UnicastRemoteObject implements IRemote{
public RemoteImpl()throws RemoteException{}//构造方法
public String show()throws RemoteException{//调用方法实现
System.out.println("进入");
System.out.println(this.toString());
return "远程调用成功";
}
}

3,服务端向本地端口1234对象注册表注册对象和它的名字

package remote.test;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry; /**
* 服务端启动,创建端口上的对象注册列表,向对象注册表中注册远程调用对象
* @author lxz
*
*/
public class TestServer {
public static void main(String[] args) throws MalformedURLException, RemoteException, AlreadyBoundException, InterruptedException {
RemoteImpl r = new RemoteImpl();//创建远程对象
Registry rr = LocateRegistry.createRegistry(1234); //创建1234端口上的对象注册表,如果已经创建了就用getRegistry方法获取
rr.bind("testrmi", r);//向注册表中注册对象
System.out.println(r.toString());
}
}

4,根据JDK API,以上远程服务就算搭建完毕了,下面通过客户端调用测试

package remote.test;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException; /**
* 客户端启动,获得远程的对象注册表中的对象引用
* @author lxz
*
*/
public class TestClient { public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
IRemote r = (IRemote) Naming.lookup("rmi://localhost:1234/testrmi");//获取远程1234端口对象注册表中testrmi的stub
String a = r.show();//调用引用的方法,实际上调用的是stub,由stub与服务端交互并返回结果
System.out.println(a);
}
}

执行结果如下:

------------------------------------------

服务端:

RemoteImpl[UnicastServerRef [liveRef: [endpoint:[192.168.1.253:58169](local),objID:[-60651394:1539d5944e6:-7fff, -6910034932968554489]]]]
客户端:

远程调用成功
------------------------------------------

这样就完成了一个远程对象注册与远程对象方法调用的完整例子. 现在根据这个例子来分析它为什么要继承UnicastRemoteObject,实现Remote,向注册表注册等等.

首先远程对象实现类中需要继承UnicastRemoteObject类,UnicastRemoteObject具有注册为远程对象,生成远程引用的功能等,所有都已经被JDK封装好了,不需要编写,其中的实现有些是sun包开头的,不公开.

UnicastRemoteObject继承关系:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZEAAAF8CAIAAACBmRFcAAAgAElEQVR4nO2d/5MU5YH/5z/IVcq7qquy8sOddckvp9ZRtV/6UgQRIYfnwSEuZCLrokuzIrB6USDAKqCiKKcdckFRhIXA4kGyh+ztXBI3GLwSYwWit8eVhBEuQLJE6pMEU5ePudodnvuhZ7qfb/29e/p5pt+v6qJ2Z7qffmbMvPN+emdeUyIAAKAqly9f5m4ppX6OUyd/8dKzJ/+h542Hu48+ct/Rl549eerkL1I/CwCgCNiZdY0i5cza961TD3cfHVj5vRc3vW1vAyu/93D30X3fOpXuiQAARSDbzNr3rVPLFv7zC5tOHNz1/vDBM/Z2cNf7L2w6sWzhPyO2AABRCcisVUF4jVv6TD8hZOm8Q9vWv/X67g/ouz78j49f3/3B8wNvLZ136KMP/1/oqVYto+RiWNWIDxUA0AIEZ5bPwX6Zdfezdmw9+ejYk4+O7fnGT+zb3xn7uX3Lk4+ObfmH7+9+8b3QU61aRsms1H+pmCX3lzRhzgIAUI0MM2vd6Nt2bPUvGe5fMmzf/v2j5+xfH/rqdx766ne+tvSN0FNl06RiIrMAKCAZZtbiAyOLD4yUPtP/lTl7vjJnj3378IH/sH9dMndfec7epfOGQk+VTpOqZdCrw4rJLxkrZsmwKvXVpFlxd5Ee1ehs1C31/cSRAQB5kmFmfXHLd+2eVf7y3vKX99q3Dx8cL395r51Z984djNqzZAFSMd1fnVyrmM5eduzYoeTmXsWkR3GXmnQySkcGAOQJl1mlUkmSWSUZzr3Sf53rWffPP9gzb3/33+2zB3zj0Jnuv9vXM29/z7z9vQsO7d8Z/k+HbN4wV7YYDKvKxo3sZ/o2ZnAqm+QjAwDyJLOe9Zl+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4mlGRmYBBvQsVbh48B4y9Z8XD95D39gUH3yMzBJSJtA0j8wC6YGelT9Xf7T9D2c3zf9C6Q9nN1390T8SQprogw9ME2FtKHx7RDjTfHBmeVjbkVnABT1LCS4evMfJLLtqNdEHH5gmRHYNnhrM40tS2fdnhetZEms7MgvwoGflzMWRdb/+Uc8fzm4af236H85u+vVbPZdG1hXPBw+bKAgFelb+XDx4T+3Cll+//ej8L5R+/fajtfNbuKtaxQCZBcKCnpUzJ5+++frlndfOWqP/tODaWYtc2nny6ZvznlTzQWaBUKBn5c8v3x08+fTN9PbLdwfznhQA6oKeBQDQBvQsAIBmoGcBALQBPQsAoBkF7Vnhzes3rO9INkEAQGoUtGeFN69vOL7jhvUdG44XVm0MgHIUrmdFMq/bJatFqxbeEgX0Q8uetSoIn2OjmteDMksJ8zohhP5IYOgYQmYBLdGvZ/kf639vJPO6vTC0N4/loSLmdfrMVcsQnXzxhgVAOXTtWfSvpVLJ516OSOZ1ul55VC01zOuO0irSUcgsoCfa96xImRXJvH7rc/OdA+mfKRQxr4sNjz2KnyZdxGIsKgHIjSL2rJY0rzcyio4d6l7vzJIp2AFQGl17VkkGCZKvP7B/7fRn53fvXvHJp78jLWRedw9wUyhUZsl0xgCoS+F61tmPz9+0ZvrCl5Z+fXjzuavnndt1N6+zZxGSDpkFWghde5ZDpMwihDw+Yt28cfbsFxb1DD648dhTrWBed/5UyBzGZRY1Fr02lCjYAVCXwvUsm8dHrFsGZi/YeX/XK70tYF5nbxNuNKwqtYNhmkzPkijYAVAa7XtWvJFPXzqz8OUVM7YtLp55HQCN0bVnxX4fPABAd/TrWQCAwqJlzwIAFBn0LACANqBnAQA0Az0LAKANYs/6P2G9+5riHl0rAAAAAElFTkSuQmCC" alt="" />

有了远程对象实现类,看服务端的启动逻辑,其中:

Registry rr = LocateRegistry.createRegistry(1234); 

LocateRegistry类:用于创建或获取某端口的对象注册表

LocateRegistry.createRegistry:这个方法表示获得远程对象注册表引用,返回Registry对象

Registry:真正操作远程对象注册表的接口

接着,

rr.bind("testrmi", r);

利用Registry的对象,把刚刚创建的远程对象注册为名称testrmi. 这里还有一种写法,效果是一样的.

LocateRegistry.createRegistry(1234); //创建,如果已经创建了就可省略这一句
Naming.bind("rmi://localhost:1234/testrmi", r);//需要带上端口

Naming:与对象注册表交互的工具类

上面是服务端从远程对象创建到对象注册的整个逻辑.客户端调用的逻辑比较简单,先通过Naming工具类获取到远程对象的引用以后,就可以正常使用了

(IRemote) Naming.lookup("rmi://localhost:1234/testrmi");

这里返回的"引用"和通常讲的对象引用不同,是远程对象的引用信息.拿到这个"引用"以后就可以像使用真正的对象一样调用其中的方法.

结束.

Java RMI(远程方法调用) 实例与分析的更多相关文章

  1. Java RMI(远程方法调用) 实例与分析 (转)

    目的: 通过本文,可以加深对Java RMI的理解,知道它的工作原理,怎么使用等. 也为了加深我自己的理解,故整理成文.不足之处,还望指出. 概念解释: RMI(RemoteMethodInvocat ...

  2. java rmi远程方法调用实例

    RMI的概念 RMI(Remote Method Invocation)远程方法调用是一种计算机之间利用远程对象互相调用实现双方通讯的一种通讯机制.使用这种机制,某一台计算机上的对象可以调用另外一台计 ...

  3. JAVA RMI远程方法调用简单实例[转]

    RMI的概念 RMI(Remote Method Invocation)远程方法调用是一种计算机之间利用远程对象互相调用实现双方通讯的一种通讯机制.使用这种机制,某一台计算机上的对象可以调用另外 一台 ...

  4. JAVA RMI远程方法调用简单实例(转载)

    来源:http://www.cnblogs.com/leslies2/archive/2011/05/20/2051844.html RMI的概念 RMI(Remote Method Invocati ...

  5. Java RMI 最简单实例

    IHello.java import java.rmi.Remote; import java.rmi.RemoteException; public interface IHello extends ...

  6. Java的RMI远程方法调用实现和应用

    最近在学习Dubbo,RMI是很重要的底层机制,RMI(Remote Method Invocation)远程方法调用是一种计算机之间利用远程对象互相调用实现双方通讯的一种通讯机制.使用这种机制,某一 ...

  7. Java RMI 介绍和例子以及Spring对RMI支持的实际应用实例

    RMI 相关知识 RMI全称是Remote Method Invocation-远程方法调用,Java RMI在JDK1.1中实现的,其威力就体现在它强大的开发分布式网络应用的能力上,是纯Java的网 ...

  8. Java RMI 框架_远程方法调用(2016-08-16)

    概念: Java RMI 指的是远程方法调用 (Remote Method Invocation).它是一种机制,能够让在某个 Java 虚拟机上的对象调用另一个 Java 虚拟机中的对象上的方法.可 ...

  9. (转) Java RMI 框架(远程方法调用)

    "原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://haolloyin.blog.51cto.com/1177454/33 ...

随机推荐

  1. Iron Foundry

    Iron Foundry Provided by Tier 3 Iron Foundry is a project initiated by the engineers of Tier 3, an e ...

  2. winform下载网页代码

    1:webClient client=new WebClient(); client.Downloadstring(地址) client.Downloadfile(地址,保存路径) 2:后台线程dow ...

  3. VMware vSphere服务器虚拟化实验十五 vCenter vShield Manager

    VMware vSphere服务器虚拟化实验十五 vCenter vShield Manager VMware  vShield Manager是专为 VMware vCenter Server 集成 ...

  4. Windows移动开发(四)——闭关修炼

    非常久不写博客了,不是由于不想写,仅仅是近期公司任务比較多,最终十一有时间出来冒泡了. 今天继续介绍移动开发中的重中之重--内存管理. C#代码是托管代码,C# 程序猿非常少像C/CPP程序猿那样为程 ...

  5. Java程序猿的JavaScript学习笔记(3——this/call/apply)

    计划按例如以下顺序完毕这篇笔记: Java程序猿的JavaScript学习笔记(1--理念) Java程序猿的JavaScript学习笔记(2--属性复制和继承) Java程序猿的JavaScript ...

  6. appium简明教程

    appium简明教程 什么是appium? 下面这段介绍来自于appium的官网. Appium is an open-source tool you can use to automate mobi ...

  7. Visual Prolog 的 Web 专家系统 (8)

    GENI核心 -- 推理引擎(2)流量控制 1.阐述fail."!"而回溯 与其他语言相比,,Prolog最大的特点.这是回溯机制. 回溯机制,还有的主要手段2个月,首先,通过使用 ...

  8. sql优化-提防错误关联

    在写sql时,在多表关联时,有时候容易把关联关系写错.一般情况下,该问题比较容易发现,但如果sql较长时,光靠眼力就比较难发现了.今天写了一个脚本,碰到该问题了. 第一版本的脚本如下: select ...

  9. 别样JAVA学习(五)继承上(1.0)Object类equals()

    上一节继承下(一)我们进行抽象类.接口以及多态的学习. 接下来大家我们讲点特殊的东西就是object类, 我们一直在说继承,子继承了父,父还有没有父类呢, 为什么这么思考,大家想构造函数的第一行是不是 ...

  10. 优秀Java程序员必须了解的GC工作原理(转)

    一个优秀的Java程序员必须了解GC(Garbage Collection 垃圾收集)的工作原理.如何优化GC的性能.如何与GC进行有限的交互,因为有一些应用程序对性能要求较高,例如嵌入式系统.实时系 ...