基于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