Class OpenSearchNodesAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchNodesAsyncClient>
org.opensearch.client.opensearch.nodes.OpenSearchNodesAsyncClientBase<OpenSearchNodesAsyncClient>
org.opensearch.client.opensearch.nodes.OpenSearchNodesAsyncClient
public class OpenSearchNodesAsyncClient
extends OpenSearchNodesAsyncClientBase<OpenSearchNodesAsyncClient>
Client for the nodes namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchNodesAsyncClient(OpenSearchTransport transport) OpenSearchNodesAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns information about hot threads on each node in the cluster.Returns information about hot threads on each node in the cluster.hotThreads(HotThreadsRequest request) Returns information about hot threads on each node in the cluster.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.opensearch.nodes.OpenSearchNodesAsyncClientBase
info, info, info, reloadSecureSettings, reloadSecureSettings, reloadSecureSettings, stats, stats, stats, usage, usage, usageMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchNodesAsyncClient
-
OpenSearchNodesAsyncClient
public OpenSearchNodesAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchNodesAsyncClient>
-
hotThreads
public CompletableFuture<HotThreadsResponse> hotThreads(HotThreadsRequest request) throws IOException, OpenSearchException Returns information about hot threads on each node in the cluster.- Throws:
IOExceptionOpenSearchException
-
hotThreads
public final CompletableFuture<HotThreadsResponse> hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) throws IOException, OpenSearchExceptionReturns information about hot threads on each node in the cluster.- Parameters:
fn- a function that initializes a builder to create theHotThreadsRequest- Throws:
IOExceptionOpenSearchException
-
hotThreads
Returns information about hot threads on each node in the cluster.- Throws:
IOExceptionOpenSearchException
-