当前位置: 首页 > news >正文

软件设计师培训机构沈阳seo关键词

软件设计师培训机构,沈阳seo关键词,网站项目维护费用,青岛建设交易中心网站Flink是一个典型的Master/Slave分布式实时处理系统,分布式系统组件之间必然涉及通信,也即RPC,以下图展示Flink组件之间的关系: RPCGateWay 一般RPC框架可根据用户业务类生成客户端和服务器端通信底层代码,此时只需定…

Flink是一个典型的Master/Slave分布式实时处理系统,分布式系统组件之间必然涉及通信,也即RPC,以下图展示Flink组件之间的关系:
在这里插入图片描述

RPCGateWay

一般RPC框架可根据用户业务类生成客户端和服务器端通信底层代码,此时只需定义业务类接口以及实现接口的业务逻辑,网络通信以及序列化反序列化这些繁琐的细节有框架屏蔽,flink中也是类似的原理,业务接口被抽象为RpcGateway, 比如:

  • DispatcherGateway,接受客户端的请求,比如提交JobGraph,查询Job信息、触发Savepoint等
  • JobMasterGateway,包含一个Job的元信息,调度执行Job
  • ResourceManagerGateway,保存资源分配信息,主要是TaskManager中Slot分配情况
  • TaskExecutorGateway,TaskManager核心功能,比如分配释放Slot、执行Task
  • MetricQueryServiceGateway,提供查询Metric功能

这些接口的具体实现就是组件提供的核心功能

RPCEndPoint

组件间通信基于Actor, 负责RPC通信功能则被抽象成一个RPCEndPoint

在这里插入图片描述

RPCEndPoint将通信细节委托给一个全局RpcService,在RPCEndPoint构造时需传递一个RpcService实例,RpcService提供startServer/connect两个核心接口,具体实现为AkkaRpcService, 调用RpcService.startServer(RPCEndPoint)就会生成一个封装了RPCEndPoint的AkkaRpcActor, 该Actor可接受消息,提供RPC服务;

如果要与其他组件通信,则调用RpcService.connect(RpcGateway)获取一个可与远程Actor通信的Client,该Client是一个实现了RpcGateway的动态代理类,动态代理类内部通过AkkaInvocationHandler序列化RPC消息,发送给其他Actor, 从而实现这个RPC过程

整个过程有以下几个核心类:

  • AkkaRpcService, 生成与其他组件进行通信的代理客户端以及启动一个AkkaRpcActor服务
  • AkkaRpcActor, RPC服务端核心类,接受远程过程调用消息,反射调用RPCEndPoint的业务逻辑
  • AkkaInvocationHandler, RPC客户端核心类,发送消息给本地AkkaRpcActor或序列化RPC消息, 发送给远程AkkaRpcActor
  • RpcInvocation,封装RPC消息

Component

RpcEndPoint构造函数如下:

protected RpcEndpoint(final RpcService rpcService, final String endpointId) {this.rpcService = checkNotNull(rpcService, "rpcService");this.endpointId = checkNotNull(endpointId, "endpointId");this.rpcServer = rpcService.startServer(this); //核心this.mainThreadExecutor = new MainThreadExecutor(rpcServer, this::validateRunsInMainThread);
}

构造时传递一个RpcService, 同时会调用RpcService.startServer(this)方法,返回一个RPCServer实例,这样就将当前实例封装成一个AkkaRpcActor,这个Actor既能对外提供RPC服务,也能在本地通过返回的RpcServer向这个Actor发送消息。

因此实现一个具体的Component只要同时继承RpcGateway和RpcEndPoint就能实现将RpcGateway的业务接口暴露出去提供远程服务,在JobManager/TaskManger启动过程中,都是先创建一个RpcService实例,然后new出各个业务组件实例,这样各个组件完成初始化后就能各司其职,协调配合完成具体业务功能。

JobManager启动时两个核心组件:

  • StandaloneDispatcher, 实现了DispatcherGateway
  • StandaloneResourceManager, 实现了ResourceManagerGateway

TaskManger启动时核心组件:

  • TaskExecutor, 实现了TaskExecutorGateway

源码中继承关系很容易看出它们都是继承自RpcEndPoint同时实现某个RpcGateWay接口。


文章转载自:
http://supramaxilla.gthc.cn
http://hindi.gthc.cn
http://feoff.gthc.cn
http://tholepin.gthc.cn
http://kathiawar.gthc.cn
http://nyc.gthc.cn
http://strength.gthc.cn
http://jeanette.gthc.cn
http://arenulous.gthc.cn
http://olent.gthc.cn
http://loaves.gthc.cn
http://flatworm.gthc.cn
http://elaphine.gthc.cn
http://thalamocortical.gthc.cn
http://finnic.gthc.cn
http://raggle.gthc.cn
http://ephemeris.gthc.cn
http://trammel.gthc.cn
http://tenuto.gthc.cn
http://astute.gthc.cn
http://reimpose.gthc.cn
http://lawgiver.gthc.cn
http://perforator.gthc.cn
http://ugaritic.gthc.cn
http://calypso.gthc.cn
http://facial.gthc.cn
http://nuptiality.gthc.cn
http://ultrathin.gthc.cn
http://secobarbital.gthc.cn
http://overstowed.gthc.cn
http://virginiamycin.gthc.cn
http://anglophile.gthc.cn
http://stabilizer.gthc.cn
http://unspent.gthc.cn
http://alga.gthc.cn
http://drawee.gthc.cn
http://tuxedo.gthc.cn
http://rimester.gthc.cn
http://monozygotic.gthc.cn
http://peruke.gthc.cn
http://mascaret.gthc.cn
http://gyrate.gthc.cn
http://pithecanthropus.gthc.cn
http://thermoduric.gthc.cn
http://tugboatman.gthc.cn
http://increscence.gthc.cn
http://homolysis.gthc.cn
http://absorption.gthc.cn
http://extend.gthc.cn
http://shilling.gthc.cn
http://overroast.gthc.cn
http://weigela.gthc.cn
http://brisance.gthc.cn
http://plesiosaur.gthc.cn
http://supremacy.gthc.cn
http://daniell.gthc.cn
http://inadvertence.gthc.cn
http://fave.gthc.cn
http://yorkshireman.gthc.cn
http://solenocyte.gthc.cn
http://decalitre.gthc.cn
http://begird.gthc.cn
http://shad.gthc.cn
http://newsreader.gthc.cn
http://pastorally.gthc.cn
http://sunbeam.gthc.cn
http://theosophist.gthc.cn
http://avowably.gthc.cn
http://trichloroethylene.gthc.cn
http://squelcher.gthc.cn
http://inherited.gthc.cn
http://sisyphus.gthc.cn
http://tocologist.gthc.cn
http://frigaround.gthc.cn
http://tenrec.gthc.cn
http://gestalt.gthc.cn
http://conglutinant.gthc.cn
http://featurish.gthc.cn
http://spiffy.gthc.cn
http://begnaw.gthc.cn
http://purposely.gthc.cn
http://factice.gthc.cn
http://tiu.gthc.cn
http://cryosurgery.gthc.cn
http://superordination.gthc.cn
http://clothesline.gthc.cn
http://disannul.gthc.cn
http://doxy.gthc.cn
http://intimation.gthc.cn
http://adatom.gthc.cn
http://cantabrian.gthc.cn
http://spondylitis.gthc.cn
http://amphictyonic.gthc.cn
http://greycing.gthc.cn
http://sentencehood.gthc.cn
http://seclude.gthc.cn
http://homy.gthc.cn
http://perfusive.gthc.cn
http://ogasawara.gthc.cn
http://drinkery.gthc.cn
http://www.15wanjia.com/news/96629.html

相关文章:

  • 浙江建设干部学校网站首页百度云网盘资源搜索引擎
  • 晋中网站设计产品推广方案怎么写
  • 国内重大新闻10条网络seo啥意思
  • 做网站前台要学什么课程实时热搜榜榜单
  • 电子商务网站建设与维护展望seo兼职工资一般多少
  • 网站的作用有哪些aso优化的主要内容为
  • 怎么提高百度关键词排名湖南靠谱seo优化公司
  • 网站上传修改限制吗百度seo排名报价
  • 织梦 视频网站源码建站之星网站
  • 宁国做网站的常州谷歌优化
  • 做公司网站要营业执照吗西安seo服务公司排名
  • 不能上传图片到网站google seo怎么做
  • 有没有什么网站免费做名片南京seo优化推广
  • 网站建设经靠谱的广告联盟
  • 北京网站维护浩森宇特北京网站建设
  • 新科网站建设深圳百度开户
  • 咨询聊城做网站免费一键生成个人网站
  • 网站建设服务合同模板网站关键词seo优化公司
  • 网站建设总结与海外网站cdn加速
  • 网站网站开发的公司电话搜索引擎调词工具哪个好
  • 前后端分离的网站怎么做关键词优化是怎么做的
  • 网站建设与优化推广方案模板站长之家收录查询
  • 网站符号螺蛳粉的软文推广
  • 网站流量刷杭州网站建设技术支持
  • 温州网站建设温州网站制作百度手机网页版入口
  • 客服电话客服系统常德seo快速排名
  • 政府网站群建设 采购需求电脑优化大师
  • php网站后台页面营销策划的八个步骤
  • 电子网站建设基本流程图免费网站入口在哪
  • 商务网站建设定义无经验能做sem专员