RPC框架架构图-客户端
2020-09-22 21:24:11 0 举报
RPC框架架构图-客户端
作者其他创作
大纲/内容
JSONMessageProtocol
+ marshalingRequest(Request req):byte[]+ unmarshalingRequest(byte[] data):Request+ marshalingResponse(Response rsp):byte[]+ unmarshalingResponse(byte[] data):Response
NettyNetClient
<<interface>>MessageProtocol
ClientStubInvocationHandler
<<interface>>NetClient
<<interface>>ServiceInfoDiscoverer
+ getServiceInfo(String name):List<ServiceInfo>
ZookeeperServiceInfoDiscoverer
HttpMessageProtocol
<<interface>>InvocationHandler
ClientStubProxyFcatory
+ getProxy(Class<?> interf)+ setServiceInfoDiscoverer(ServiceInfoDiscoverver sid)
BioNetClient
Request
+ get/set...+ getHeader(String name):String
Response
<<enum>>Status
+get...
ServiceInfo
- name:String- protocol:String- address:String
+ get/set..
LocalConfigServiceInfoDiscoverer
0 条评论
下一页