摘要:
建立IPC连接 IPC Client通过调用getConnection获取IPC连接,具体流程图如下: 服务器端的IPC连接代码分散在Listener和Server.Connection中。
Listener.run() 实现了NIO中的选择器循环。如下代码: //Listener构造函数
public Listener() throws IOException { addre... 阅读全文
posted @ 2014-12-23 18:55
dorothychai
阅读(669)
评论(0)
推荐(0)
摘要:
与IPC相关的代码在org.apache.hadoop.ipc包下。共七个文件,其中4个辅助类: RemoteException Status VersionedProtocol ConnectionHeader 主要实现类3个: Client Server RPC 客户端Client: 如上图: 与IPC连接相关的 Clien... 阅读全文
posted @ 2014-12-23 18:48
dorothychai
阅读(514)
评论(0)
推荐(0)

浙公网安备 33010602011771号