public class DispatcherRestEndpoint extends WebMonitorEndpoint<DispatcherGateway>
Dispatcher component.RestServerEndpoint.RestHandlerUrlComparatorclusterConfiguration, executor, leaderRetriever, restConfigurationlog, responseHeaders, uploadDir| Constructor and Description |
|---|
DispatcherRestEndpoint(GatewayRetriever<DispatcherGateway> leaderRetriever,
org.apache.flink.configuration.Configuration clusterConfiguration,
RestHandlerConfiguration restConfiguration,
GatewayRetriever<ResourceManagerGateway> resourceManagerRetriever,
TransientBlobService transientBlobService,
ScheduledExecutorService executor,
MetricFetcher metricFetcher,
LeaderElection leaderElection,
ExecutionGraphCache executionGraphCache,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> |
initializeHandlers(CompletableFuture<String> localAddressFuture)
This method is called at the beginning of
RestServerEndpoint.start() to setup all handlers that the
REST server endpoint implementation requires. |
protected Collection<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> |
initializeWebSubmissionHandlers(CompletableFuture<String> localAddressFuture) |
protected CompletableFuture<Void> |
shutDownInternal()
Stops this REST server endpoint.
|
archiveJsonWithPath, createExecutorService, grantLeadership, handleError, revokeLeadership, startInternalcloseAsync, getRestBaseUrl, getRestPort, getServerAddress, startpublic DispatcherRestEndpoint(GatewayRetriever<DispatcherGateway> leaderRetriever, org.apache.flink.configuration.Configuration clusterConfiguration, RestHandlerConfiguration restConfiguration, GatewayRetriever<ResourceManagerGateway> resourceManagerRetriever, TransientBlobService transientBlobService, ScheduledExecutorService executor, MetricFetcher metricFetcher, LeaderElection leaderElection, ExecutionGraphCache executionGraphCache, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) throws IOException, org.apache.flink.util.ConfigurationException
IOExceptionorg.apache.flink.util.ConfigurationExceptionprotected List<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> initializeHandlers(CompletableFuture<String> localAddressFuture)
RestServerEndpointRestServerEndpoint.start() to setup all handlers that the
REST server endpoint implementation requires.initializeHandlers in class WebMonitorEndpoint<DispatcherGateway>localAddressFuture - future rest address of the RestServerEndpointprotected Collection<org.apache.flink.api.java.tuple.Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> initializeWebSubmissionHandlers(CompletableFuture<String> localAddressFuture)
initializeWebSubmissionHandlers in class WebMonitorEndpoint<DispatcherGateway>protected CompletableFuture<Void> shutDownInternal()
RestServerEndpointshutDownInternal in class WebMonitorEndpoint<DispatcherGateway>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.