org.elasticsearch.threadpool.ThreadPool.stats()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(174)

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

ThreadPool.stats介绍

暂无

代码示例

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

  1. public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool,
  2. boolean fs, boolean transport, boolean http, boolean circuitBreaker,
  3. boolean script, boolean discoveryStats, boolean ingest, boolean adaptiveSelection) {
  4. // for indices stats we want to include previous allocated shards stats as well (it will
  5. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  6. return new NodeStats(transportService.getLocalNode(), System.currentTimeMillis(),
  7. indices.anySet() ? indicesService.stats(true, indices) : null,
  8. os ? monitorService.osService().stats() : null,
  9. process ? monitorService.processService().stats() : null,
  10. jvm ? monitorService.jvmService().stats() : null,
  11. threadPool ? this.threadPool.stats() : null,
  12. fs ? monitorService.fsService().stats() : null,
  13. transport ? transportService.stats() : null,
  14. http ? (httpServerTransport == null ? null : httpServerTransport.stats()) : null,
  15. circuitBreaker ? circuitBreakerService.stats() : null,
  16. script ? scriptService.stats() : null,
  17. discoveryStats ? discovery.stats() : null,
  18. ingest ? ingestService.stats() : null,
  19. adaptiveSelection ? responseCollectorService.getAdaptiveStats(searchTransportService.getPendingSearchRequests()) : null
  20. );
  21. }

代码示例来源:origin: harbby/presto-connectors

  1. public NodeStats stats() throws IOException {
  2. // for indices stats we want to include previous allocated shards stats as well (it will
  3. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  4. return new NodeStats(discovery.localNode(), System.currentTimeMillis(),
  5. indicesService.stats(true),
  6. monitorService.osService().stats(),
  7. monitorService.processService().stats(),
  8. monitorService.jvmService().stats(),
  9. threadPool.stats(),
  10. monitorService.fsService().stats(),
  11. transportService.stats(),
  12. httpServer == null ? null : httpServer.stats(),
  13. circuitBreakerService.stats(),
  14. scriptService.stats()
  15. );
  16. }

代码示例来源:origin: harbby/presto-connectors

  1. public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool,
  2. boolean fs, boolean transport, boolean http, boolean circuitBreaker,
  3. boolean script) {
  4. // for indices stats we want to include previous allocated shards stats as well (it will
  5. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  6. return new NodeStats(discovery.localNode(), System.currentTimeMillis(),
  7. indices.anySet() ? indicesService.stats(true, indices) : null,
  8. os ? monitorService.osService().stats() : null,
  9. process ? monitorService.processService().stats() : null,
  10. jvm ? monitorService.jvmService().stats() : null,
  11. threadPool ? this.threadPool.stats() : null,
  12. fs ? monitorService.fsService().stats() : null,
  13. transport ? transportService.stats() : null,
  14. http ? (httpServer == null ? null : httpServer.stats()) : null,
  15. circuitBreaker ? circuitBreakerService.stats() : null,
  16. script ? scriptService.stats() : null
  17. );
  18. }
  19. }

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

  1. public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool,
  2. boolean fs, boolean transport, boolean http, boolean circuitBreaker,
  3. boolean script, boolean discoveryStats, boolean ingest) {
  4. // for indices stats we want to include previous allocated shards stats as well (it will
  5. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  6. return new NodeStats(discovery.localNode(), System.currentTimeMillis(),
  7. indices.anySet() ? indicesService.stats(true, indices) : null,
  8. os ? monitorService.osService().stats() : null,
  9. process ? monitorService.processService().stats() : null,
  10. jvm ? monitorService.jvmService().stats() : null,
  11. threadPool ? this.threadPool.stats() : null,
  12. fs ? monitorService.fsService().stats() : null,
  13. transport ? transportService.stats() : null,
  14. http ? (httpServerTransport == null ? null : httpServerTransport.stats()) : null,
  15. circuitBreaker ? circuitBreakerService.stats() : null,
  16. script ? scriptService.stats() : null,
  17. discoveryStats ? discovery.stats() : null,
  18. ingest ? ingestService.getPipelineExecutionService().stats() : null
  19. );
  20. }

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

  1. public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool,
  2. boolean fs, boolean transport, boolean http, boolean circuitBreaker,
  3. boolean script, boolean discoveryStats, boolean ingest, boolean adaptiveSelection) {
  4. // for indices stats we want to include previous allocated shards stats as well (it will
  5. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  6. return new NodeStats(transportService.getLocalNode(), System.currentTimeMillis(),
  7. indices.anySet() ? indicesService.stats(true, indices) : null,
  8. os ? monitorService.osService().stats() : null,
  9. process ? monitorService.processService().stats() : null,
  10. jvm ? monitorService.jvmService().stats() : null,
  11. threadPool ? this.threadPool.stats() : null,
  12. fs ? monitorService.fsService().stats() : null,
  13. transport ? transportService.stats() : null,
  14. http ? (httpServerTransport == null ? null : httpServerTransport.stats()) : null,
  15. circuitBreaker ? circuitBreakerService.stats() : null,
  16. script ? scriptService.stats() : null,
  17. discoveryStats ? discovery.stats() : null,
  18. ingest ? ingestService.getPipelineExecutionService().stats() : null,
  19. adaptiveSelection ? responseCollectorService.getAdaptiveStats(searchTransportService.getPendingSearchRequests()) : null
  20. );
  21. }

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

  1. public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool,
  2. boolean fs, boolean transport, boolean http, boolean circuitBreaker,
  3. boolean script, boolean discoveryStats, boolean ingest, boolean adaptiveSelection) {
  4. // for indices stats we want to include previous allocated shards stats as well (it will
  5. // only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
  6. return new NodeStats(transportService.getLocalNode(), System.currentTimeMillis(),
  7. indices.anySet() ? indicesService.stats(true, indices) : null,
  8. os ? monitorService.osService().stats() : null,
  9. process ? monitorService.processService().stats() : null,
  10. jvm ? monitorService.jvmService().stats() : null,
  11. threadPool ? this.threadPool.stats() : null,
  12. fs ? monitorService.fsService().stats() : null,
  13. transport ? transportService.stats() : null,
  14. http ? (httpServerTransport == null ? null : httpServerTransport.stats()) : null,
  15. circuitBreaker ? circuitBreakerService.stats() : null,
  16. script ? scriptService.stats() : null,
  17. discoveryStats ? discovery.stats() : null,
  18. ingest ? ingestService.stats() : null,
  19. adaptiveSelection ? responseCollectorService.getAdaptiveStats(searchTransportService.getPendingSearchRequests()) : null
  20. );
  21. }

相关文章