Flink Rest服务器端点实现

本文详细介绍了Apache Flink的Rest服务器端点实现,包括启动服务、资源分发、WebMonitorEndpoint、RestServerEndpoint的构造及请求处理,以及Netty的使用,如配置线程池、SSL支持和事件循环组。还提到了不同HTTP方法的注册以及端口绑定过程。此外,文章讨论了如何初始化和注册不同的处理请求,如ClusterOverviewHandler、DashboardConfigHandler等。
摘要由CSDN通过智能技术生成

基于Netty实现,位于package org.apache.flink.runtime.rest

启动服务
入口类

StandaloneSessionClusterEntrypoint
资源分发工厂类DefaultDispatcherResourceManagerComponentFactory

WebMonitorEndpoint.createExecutorService(
configuration.getInteger(RestOptions.SERVER_NUM_THREADS),
configuration.getInteger(RestOptions.SERVER_THREAD_PRIORITY),
“DispatcherRestEndpoint”);
WebMonitorEndpoint
构造方法

public WebMonitorEndpoint(
        GatewayRetriever<!--? extends T--> leaderRetriever,
        Configuration clusterConfiguration,
        RestHandlerConfiguration restConfiguration,
        GatewayRetriever<resourcemanagergateway deep="5"> resourceManagerRetriever,
        TransientBlobService transientBlobService,
        ScheduledExecutorService executor,
        MetricFetcher metricFetcher,
        LeaderElectionService leaderElectionService,
        ExecutionGraphCache executionGraphCache,
        FatalErrorHan
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值