Class OpenSearchNodesClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchNodesClient>
org.opensearch.client.opensearch.nodes.OpenSearchNodesClientBase<OpenSearchNodesClient>
org.opensearch.client.opensearch.nodes.OpenSearchNodesClient
Client for the nodes namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchNodesClient(OpenSearchTransport transport) OpenSearchNodesClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns information about hot threads on each node in the cluster.final HotThreadsResponseReturns 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.OpenSearchNodesClientBase
info, info, info, reloadSecureSettings, reloadSecureSettings, reloadSecureSettings, stats, stats, stats, usage, usage, usageMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchNodesClient
-
OpenSearchNodesClient
public OpenSearchNodesClient(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,OpenSearchNodesClient>
-
hotThreads
public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOException, OpenSearchException Returns information about hot threads on each node in the cluster.- Throws:
IOExceptionOpenSearchException
-
hotThreads
public final 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
-