org.apache.flink.runtime.webmonitor.WebMonitor类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.apache.flink.runtime.webmonitor.WebMonitor类的一些代码示例,展示了WebMonitor类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMonitor类的具体详情如下:
包路径:org.apache.flink.runtime.webmonitor.WebMonitor
类名称:WebMonitor

WebMonitor介绍

[英]Interface for web monitors. Defines life-cycle methods and properties.
[中]

代码示例

代码示例来源:origin: apache/flink

  1. highAvailabilityServices,
  2. metricRegistry,
  3. webMonitor == null ? Option.empty() : Option.apply(webMonitor.getRestAddress()),
  4. new Some<>(JobMaster.JOB_MANAGER_NAME),
  5. Option.<String>empty(),
  6. getArchivistClass())._1();
  7. final String webMonitorURL = webMonitor == null ? null : webMonitor.getRestAddress();
  8. webMonitor.stop();
  9. } catch (Throwable ignored) {
  10. LOG.warn("Failed to stop the web frontend", t);
  11. webMonitor.stop();
  12. } catch (Throwable t) {
  13. LOG.error("Failed to stop the web frontend", t);

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. monitor.start();

代码示例来源:origin: org.apache.flink/flink-runtime-web_2.10

  1. @Override
  2. public void handleError(Exception exception) {
  3. LOG.error("Received error from LeaderRetrievalService.", exception);
  4. try {
  5. // stop associated webMonitor
  6. webMonitor.stop();
  7. }
  8. catch (Exception e) {
  9. LOG.error("Error while stopping the web server due to a LeaderRetrievalService error.", e);
  10. }
  11. }
  12. }

代码示例来源:origin: com.alibaba.blink/flink-test-utils

  1. private void startLegacyMiniCluster() throws Exception {
  2. final Configuration configuration = new Configuration(miniClusterResourceConfiguration.getConfiguration());
  3. configuration.setInteger(ConfigConstants.LOCAL_NUMBER_TASK_MANAGER, miniClusterResourceConfiguration.getNumberTaskManagers());
  4. configuration.setInteger(TaskManagerOptions.NUM_TASK_SLOTS, miniClusterResourceConfiguration.getNumberSlotsPerTaskManager());
  5. configuration.setString(CoreOptions.TMP_DIRS, temporaryFolder.newFolder().getAbsolutePath());
  6. final LocalFlinkMiniCluster flinkMiniCluster = TestBaseUtils.startCluster(
  7. configuration,
  8. !enableClusterClient); // the cluster client only works if separate actor systems are used
  9. jobExecutorService = flinkMiniCluster;
  10. if (enableClusterClient) {
  11. clusterClient = new StandaloneClusterClient(configuration, flinkMiniCluster.highAvailabilityServices(), true);
  12. }
  13. Configuration restClientConfig = new Configuration();
  14. restClientConfig.setInteger(JobManagerOptions.PORT, flinkMiniCluster.getLeaderRPCPort());
  15. this.restClusterClientConfig = new UnmodifiableConfiguration(restClientConfig);
  16. if (flinkMiniCluster.webMonitor().isDefined()) {
  17. webUIPort = flinkMiniCluster.webMonitor().get().getServerPort();
  18. }
  19. }

代码示例来源:origin: org.apache.flink/flink-runtime

  1. monitor.start();

代码示例来源:origin: org.apache.flink/flink-yarn_2.11

  1. highAvailabilityServices,
  2. metricRegistry,
  3. webMonitor == null ? Option.empty() : Option.apply(webMonitor.getRestAddress()),
  4. new Some<>(JobMaster.JOB_MANAGER_NAME),
  5. Option.<String>empty(),
  6. getArchivistClass())._1();
  7. final String webMonitorURL = webMonitor == null ? null : webMonitor.getRestAddress();
  8. webMonitor.stop();
  9. } catch (Throwable ignored) {
  10. LOG.warn("Failed to stop the web frontend", t);
  11. webMonitor.stop();
  12. } catch (Throwable t) {
  13. LOG.error("Failed to stop the web frontend", t);

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. monitor.start();

代码示例来源:origin: org.apache.flink/flink-yarn

  1. highAvailabilityServices,
  2. metricRegistry,
  3. webMonitor == null ? Option.empty() : Option.apply(webMonitor.getRestAddress()),
  4. new Some<>(JobMaster.JOB_MANAGER_NAME),
  5. Option.<String>empty(),
  6. getArchivistClass())._1();
  7. final String webMonitorURL = webMonitor == null ? null : webMonitor.getRestAddress();
  8. webMonitor.stop();
  9. } catch (Throwable ignored) {
  10. LOG.warn("Failed to stop the web frontend", t);
  11. webMonitor.stop();
  12. } catch (Throwable t) {
  13. LOG.error("Failed to stop the web frontend", t);

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. monitor.start(jobManagerAkkaURL);

相关文章