Class NodeService

java.lang.Object
org.elasticsearch.node.NodeService
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class NodeService
extends java.lang.Object
implements java.io.Closeable
  • Method Summary

    Modifier and Type Method Description
    boolean awaitClose​(long timeout, java.util.concurrent.TimeUnit timeUnit)
    Wait for the node to be effectively closed.
    void close()  
    IngestService getIngestService()  
    MonitorService getMonitorService()  
    NodeInfo info​(boolean settings, boolean os, boolean process, boolean jvm, boolean threadPool, boolean transport, boolean http, boolean plugin, boolean ingest, boolean aggs, boolean indices)  
    NodeStats stats​(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool, boolean fs, boolean transport, boolean http, boolean circuitBreaker, boolean script, boolean discoveryStats, boolean ingest, boolean adaptiveSelection, boolean scriptCache, boolean indexingPressure)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • info

      public NodeInfo info​(boolean settings, boolean os, boolean process, boolean jvm, boolean threadPool, boolean transport, boolean http, boolean plugin, boolean ingest, boolean aggs, boolean indices)
    • stats

      public NodeStats stats​(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool, boolean fs, boolean transport, boolean http, boolean circuitBreaker, boolean script, boolean discoveryStats, boolean ingest, boolean adaptiveSelection, boolean scriptCache, boolean indexingPressure)
    • getIngestService

      public IngestService getIngestService()
    • getMonitorService

      public MonitorService getMonitorService()
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException
    • awaitClose

      public boolean awaitClose​(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
      Wait for the node to be effectively closed.
      Throws:
      java.lang.InterruptedException
      See Also:
      IndicesService.awaitClose(long, TimeUnit)