Package org.elasticsearch.node
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 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)
-
-
-
Method Detail
-
info
public NodeInfo info(boolean settings, boolean os, boolean process, boolean jvm, boolean threadPool, boolean transport, boolean http, boolean plugin, boolean ingest, 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)
-
getIngestService
public IngestService getIngestService()
-
getMonitorService
public MonitorService getMonitorService()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.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)
-
-