Class ElasticsearchNodesAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchNodesAsyncClient>
co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient
public class ElasticsearchNodesAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchNodesAsyncClient>
Client for the nodes namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchNodesAsyncClient(ElasticsearchTransport transport)
ElasticsearchNodesAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<HotThreadsResponse>
hotThreads()
Returns information about hot threads on each node in the cluster.java.util.concurrent.CompletableFuture<HotThreadsResponse>
hotThreads(HotThreadsRequest request)
Returns information about hot threads on each node in the cluster.java.util.concurrent.CompletableFuture<HotThreadsResponse>
hotThreads(java.util.function.Function<HotThreadsRequest.Builder,ObjectBuilder<HotThreadsRequest>> fn)
Returns information about hot threads on each node in the cluster.java.util.concurrent.CompletableFuture<NodesInfoResponse>
info()
Returns information about nodes in the cluster.java.util.concurrent.CompletableFuture<NodesInfoResponse>
info(NodesInfoRequest request)
Returns information about nodes in the cluster.java.util.concurrent.CompletableFuture<NodesInfoResponse>
info(java.util.function.Function<NodesInfoRequest.Builder,ObjectBuilder<NodesInfoRequest>> fn)
Returns information about nodes in the cluster.java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse>
reloadSecureSettings()
Reloads secure settings.java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse>
reloadSecureSettings(ReloadSecureSettingsRequest request)
Reloads secure settings.java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse>
reloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn)
Reloads secure settings.java.util.concurrent.CompletableFuture<NodesStatsResponse>
stats()
Returns statistical information about nodes in the cluster.java.util.concurrent.CompletableFuture<NodesStatsResponse>
stats(NodesStatsRequest request)
Returns statistical information about nodes in the cluster.java.util.concurrent.CompletableFuture<NodesStatsResponse>
stats(java.util.function.Function<NodesStatsRequest.Builder,ObjectBuilder<NodesStatsRequest>> fn)
Returns statistical information about nodes in the cluster.java.util.concurrent.CompletableFuture<NodesUsageResponse>
usage()
Returns low-level information about REST actions usage on nodes.java.util.concurrent.CompletableFuture<NodesUsageResponse>
usage(NodesUsageRequest request)
Returns low-level information about REST actions usage on nodes.java.util.concurrent.CompletableFuture<NodesUsageResponse>
usage(java.util.function.Function<NodesUsageRequest.Builder,ObjectBuilder<NodesUsageRequest>> fn)
Returns low-level information about REST actions usage on nodes.ElasticsearchNodesAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchNodesAsyncClient
-
ElasticsearchNodesAsyncClient
public ElasticsearchNodesAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchNodesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchNodesAsyncClient>
-
hotThreads
public java.util.concurrent.CompletableFuture<HotThreadsResponse> hotThreads(HotThreadsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about hot threads on each node in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
hotThreads
public final java.util.concurrent.CompletableFuture<HotThreadsResponse> hotThreads(java.util.function.Function<HotThreadsRequest.Builder,ObjectBuilder<HotThreadsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about hot threads on each node in the cluster.- Parameters:
fn
- a function that initializes a builder to create theHotThreadsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
hotThreads
public java.util.concurrent.CompletableFuture<HotThreadsResponse> hotThreads() throws java.io.IOException, ElasticsearchExceptionReturns information about hot threads on each node in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
info
public java.util.concurrent.CompletableFuture<NodesInfoResponse> info(NodesInfoRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about nodes in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
info
public final java.util.concurrent.CompletableFuture<NodesInfoResponse> info(java.util.function.Function<NodesInfoRequest.Builder,ObjectBuilder<NodesInfoRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about nodes in the cluster.- Parameters:
fn
- a function that initializes a builder to create theNodesInfoRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
info
public java.util.concurrent.CompletableFuture<NodesInfoResponse> info() throws java.io.IOException, ElasticsearchExceptionReturns information about nodes in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
reloadSecureSettings
public java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(ReloadSecureSettingsRequest request) throws java.io.IOException, ElasticsearchExceptionReloads secure settings.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
reloadSecureSettings
public final java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReloads secure settings.- Parameters:
fn
- a function that initializes a builder to create theReloadSecureSettingsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
reloadSecureSettings
public java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings() throws java.io.IOException, ElasticsearchExceptionReloads secure settings.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stats
public java.util.concurrent.CompletableFuture<NodesStatsResponse> stats(NodesStatsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns statistical information about nodes in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stats
public final java.util.concurrent.CompletableFuture<NodesStatsResponse> stats(java.util.function.Function<NodesStatsRequest.Builder,ObjectBuilder<NodesStatsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns statistical information about nodes in the cluster.- Parameters:
fn
- a function that initializes a builder to create theNodesStatsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
stats
public java.util.concurrent.CompletableFuture<NodesStatsResponse> stats() throws java.io.IOException, ElasticsearchExceptionReturns statistical information about nodes in the cluster.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
usage
public java.util.concurrent.CompletableFuture<NodesUsageResponse> usage(NodesUsageRequest request) throws java.io.IOException, ElasticsearchExceptionReturns low-level information about REST actions usage on nodes.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
usage
public final java.util.concurrent.CompletableFuture<NodesUsageResponse> usage(java.util.function.Function<NodesUsageRequest.Builder,ObjectBuilder<NodesUsageRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns low-level information about REST actions usage on nodes.- Parameters:
fn
- a function that initializes a builder to create theNodesUsageRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
usage
public java.util.concurrent.CompletableFuture<NodesUsageResponse> usage() throws java.io.IOException, ElasticsearchExceptionReturns low-level information about REST actions usage on nodes.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-