org.apache.flink.runtime.webmonitor.WebMonitorEndpoint Java Examples
The following examples show how to use
org.apache.flink.runtime.webmonitor.WebMonitorEndpoint.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DispatcherResourceManagerComponent.java From flink with Apache License 2.0 | 6 votes |
DispatcherResourceManagerComponent( @Nonnull DispatcherRunner dispatcherRunner, @Nonnull ResourceManager<?> resourceManager, @Nonnull LeaderRetrievalService dispatcherLeaderRetrievalService, @Nonnull LeaderRetrievalService resourceManagerRetrievalService, @Nonnull WebMonitorEndpoint<?> webMonitorEndpoint) { this.dispatcherRunner = dispatcherRunner; this.resourceManager = resourceManager; this.dispatcherLeaderRetrievalService = dispatcherLeaderRetrievalService; this.resourceManagerRetrievalService = resourceManagerRetrievalService; this.webMonitorEndpoint = webMonitorEndpoint; this.terminationFuture = new CompletableFuture<>(); this.shutDownFuture = new CompletableFuture<>(); registerShutDownFuture(); }
Example #2
Source File: SessionDispatcherResourceManagerComponentFactory.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override protected DispatcherResourceManagerComponent<Dispatcher> createDispatcherResourceManagerComponent( Dispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { return new SessionDispatcherResourceManagerComponent( dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #3
Source File: JobDispatcherResourceManagerComponent.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
JobDispatcherResourceManagerComponent( MiniDispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { super(dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); final CompletableFuture<ApplicationStatus> shutDownFuture = getShutDownFuture(); dispatcher.getJobTerminationFuture().whenComplete((applicationStatus, throwable) -> { if (throwable != null) { shutDownFuture.completeExceptionally(throwable); } else { shutDownFuture.complete(applicationStatus); } }); }
Example #4
Source File: DispatcherResourceManagerComponent.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
DispatcherResourceManagerComponent( @Nonnull T dispatcher, @Nonnull ResourceManager<?> resourceManager, @Nonnull LeaderRetrievalService dispatcherLeaderRetrievalService, @Nonnull LeaderRetrievalService resourceManagerRetrievalService, @Nonnull WebMonitorEndpoint<?> webMonitorEndpoint, @Nonnull JobManagerMetricGroup jobManagerMetricGroup) { this.resourceManager = resourceManager; this.dispatcher = dispatcher; this.dispatcherLeaderRetrievalService = dispatcherLeaderRetrievalService; this.resourceManagerRetrievalService = resourceManagerRetrievalService; this.webMonitorEndpoint = webMonitorEndpoint; this.jobManagerMetricGroup = jobManagerMetricGroup; this.terminationFuture = new CompletableFuture<>(); this.shutDownFuture = new CompletableFuture<>(); registerShutDownFuture(); }
Example #5
Source File: JobDispatcherResourceManagerComponentFactory.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override protected DispatcherResourceManagerComponent<MiniDispatcher> createDispatcherResourceManagerComponent( MiniDispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { return new JobDispatcherResourceManagerComponent( dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #6
Source File: JobDispatcherResourceManagerComponentFactory.java From flink with Apache License 2.0 | 6 votes |
@Override protected DispatcherResourceManagerComponent<MiniDispatcher> createDispatcherResourceManagerComponent( MiniDispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { return new JobDispatcherResourceManagerComponent( dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #7
Source File: DispatcherResourceManagerComponent.java From flink with Apache License 2.0 | 6 votes |
DispatcherResourceManagerComponent( @Nonnull T dispatcher, @Nonnull ResourceManager<?> resourceManager, @Nonnull LeaderRetrievalService dispatcherLeaderRetrievalService, @Nonnull LeaderRetrievalService resourceManagerRetrievalService, @Nonnull WebMonitorEndpoint<?> webMonitorEndpoint, @Nonnull JobManagerMetricGroup jobManagerMetricGroup) { this.resourceManager = resourceManager; this.dispatcher = dispatcher; this.dispatcherLeaderRetrievalService = dispatcherLeaderRetrievalService; this.resourceManagerRetrievalService = resourceManagerRetrievalService; this.webMonitorEndpoint = webMonitorEndpoint; this.jobManagerMetricGroup = jobManagerMetricGroup; this.terminationFuture = new CompletableFuture<>(); this.shutDownFuture = new CompletableFuture<>(); registerShutDownFuture(); }
Example #8
Source File: SessionDispatcherResourceManagerComponentFactory.java From flink with Apache License 2.0 | 6 votes |
@Override protected DispatcherResourceManagerComponent<Dispatcher> createDispatcherResourceManagerComponent( Dispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { return new SessionDispatcherResourceManagerComponent( dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #9
Source File: JobDispatcherResourceManagerComponent.java From flink with Apache License 2.0 | 6 votes |
JobDispatcherResourceManagerComponent( MiniDispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { super(dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); final CompletableFuture<ApplicationStatus> shutDownFuture = getShutDownFuture(); dispatcher.getJobTerminationFuture().whenComplete((applicationStatus, throwable) -> { if (throwable != null) { shutDownFuture.completeExceptionally(throwable); } else { shutDownFuture.complete(applicationStatus); } }); }
Example #10
Source File: SessionDispatcherResourceManagerComponent.java From flink with Apache License 2.0 | 5 votes |
SessionDispatcherResourceManagerComponent( Dispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { super(dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #11
Source File: RestEndpointFactory.java From flink with Apache License 2.0 | 5 votes |
WebMonitorEndpoint<T> createRestEndpoint( Configuration configuration, LeaderGatewayRetriever<DispatcherGateway> dispatcherGatewayRetriever, LeaderGatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, TransientBlobService transientBlobService, ScheduledExecutorService executor, MetricFetcher metricFetcher, LeaderElectionService leaderElectionService, FatalErrorHandler fatalErrorHandler) throws Exception;
Example #12
Source File: AbstractDispatcherResourceManagerComponentFactory.java From flink with Apache License 2.0 | 5 votes |
protected abstract DispatcherResourceManagerComponent<T> createDispatcherResourceManagerComponent( T dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup);
Example #13
Source File: RestEndpointFactory.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
WebMonitorEndpoint<T> createRestEndpoint( Configuration configuration, LeaderGatewayRetriever<DispatcherGateway> dispatcherGatewayRetriever, LeaderGatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, TransientBlobService transientBlobService, ExecutorService executor, MetricFetcher metricFetcher, LeaderElectionService leaderElectionService, FatalErrorHandler fatalErrorHandler) throws Exception;
Example #14
Source File: RestEndpointFactory.java From flink with Apache License 2.0 | 5 votes |
WebMonitorEndpoint<T> createRestEndpoint( Configuration configuration, LeaderGatewayRetriever<DispatcherGateway> dispatcherGatewayRetriever, LeaderGatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, TransientBlobService transientBlobService, ExecutorService executor, MetricFetcher metricFetcher, LeaderElectionService leaderElectionService, FatalErrorHandler fatalErrorHandler) throws Exception;
Example #15
Source File: AbstractDispatcherResourceManagerComponentFactory.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
protected abstract DispatcherResourceManagerComponent<T> createDispatcherResourceManagerComponent( T dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup);
Example #16
Source File: SessionDispatcherResourceManagerComponent.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
SessionDispatcherResourceManagerComponent( Dispatcher dispatcher, ResourceManager<?> resourceManager, LeaderRetrievalService dispatcherLeaderRetrievalService, LeaderRetrievalService resourceManagerRetrievalService, WebMonitorEndpoint<?> webMonitorEndpoint, JobManagerMetricGroup jobManagerMetricGroup) { super(dispatcher, resourceManager, dispatcherLeaderRetrievalService, resourceManagerRetrievalService, webMonitorEndpoint, jobManagerMetricGroup); }
Example #17
Source File: DispatcherResourceManagerComponent.java From flink with Apache License 2.0 | 4 votes |
@Nonnull public WebMonitorEndpoint<?> getWebMonitorEndpoint() { return webMonitorEndpoint; }
Example #18
Source File: DispatcherResourceManagerComponent.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Nonnull public WebMonitorEndpoint<?> getWebMonitorEndpoint() { return webMonitorEndpoint; }