org.elasticsearch.node.Node.newClusterInfoService()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(204)

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

Node.newClusterInfoService介绍

[英]Constructs a ClusterInfoService which may be mocked for tests.
[中]构造一个ClusterInfo服务,可以对其进行模拟以进行测试。

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

  1. final DiskThresholdMonitor listener = new DiskThresholdMonitor(settings, clusterService::state,
  2. clusterService.getClusterSettings(), client);
  3. final ClusterInfoService clusterInfoService = newClusterInfoService(settings, clusterService, threadPool, client,
  4. listener::onNewInfo);
  5. final UsageService usageService = new UsageService();

代码示例来源:origin: com.strapdata.elasticsearch.test/framework

  1. @Override
  2. protected ClusterInfoService newClusterInfoService(Settings settings, ClusterService clusterService,
  3. ThreadPool threadPool, NodeClient client, Consumer<ClusterInfo> listener) {
  4. if (getPluginsService().filterPlugins(MockInternalClusterInfoService.TestPlugin.class).isEmpty()) {
  5. return super.newClusterInfoService(settings, clusterService, threadPool, client, listener);
  6. } else {
  7. return new MockInternalClusterInfoService(settings, clusterService, threadPool, client, listener);
  8. }
  9. }
  10. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  1. final DiskThresholdMonitor listener = new DiskThresholdMonitor(settings, clusterService::state,
  2. clusterService.getClusterSettings(), client);
  3. final ClusterInfoService clusterInfoService = newClusterInfoService(settings, clusterService, threadPool, client,
  4. listener::onNewInfo);
  5. final UsageService usageService = new UsageService(settings);

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

  1. final IngestService ingestService = new IngestService(clusterService.getClusterSettings(), settings, threadPool, this.environment,
  2. scriptModule.getScriptService(), analysisModule.getAnalysisRegistry(), pluginsService.filterPlugins(IngestPlugin.class));
  3. final ClusterInfoService clusterInfoService = newClusterInfoService(settings, clusterService, threadPool, client);

代码示例来源:origin: apache/servicemix-bundles

  1. final DiskThresholdMonitor listener = new DiskThresholdMonitor(settings, clusterService::state,
  2. clusterService.getClusterSettings(), client);
  3. final ClusterInfoService clusterInfoService = newClusterInfoService(settings, clusterService, threadPool, client,
  4. listener::onNewInfo);
  5. final UsageService usageService = new UsageService(settings);

相关文章