Class NodesAsyncClient
java.lang.Object
org.opensearch.client.base.ApiClient<NodesAsyncClient>
org.opensearch.client.opensearch.api.nodes.NodesAsyncClient
public class NodesAsyncClient extends ApiClient<NodesAsyncClient>
Client for the nodes namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NodesAsyncClient(Transport transport)NodesAsyncClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description 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<HotThreadsResponse>hotThreads(HotThreadsRequest request)Returns information about hot threads on each node in the cluster.java.util.concurrent.CompletableFuture<InfoResponse>info(java.util.function.Function<InfoRequest.Builder,ObjectBuilder<InfoRequest>> fn)Returns information about nodes in the cluster.java.util.concurrent.CompletableFuture<InfoResponse>info(InfoRequest request)Returns information about nodes in the cluster.java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse>reloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn)Reloads secure settings.java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse>reloadSecureSettings(ReloadSecureSettingsRequest request)Reloads secure settings.java.util.concurrent.CompletableFuture<StatsResponse>stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn)Returns statistical information about nodes in the cluster.java.util.concurrent.CompletableFuture<StatsResponse>stats(StatsRequest request)Returns statistical information about nodes in the cluster.java.util.concurrent.CompletableFuture<UsageResponse>usage(java.util.function.Function<UsageRequest.Builder,ObjectBuilder<UsageRequest>> fn)Returns low-level information about REST actions usage on nodes.java.util.concurrent.CompletableFuture<UsageResponse>usage(UsageRequest request)Returns low-level information about REST actions usage on nodes.NodesAsyncClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newNodesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.NodesAsyncClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newNodesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
hotThreads
public java.util.concurrent.CompletableFuture<HotThreadsResponse> hotThreads(HotThreadsRequest request) throws java.io.IOExceptionReturns information about hot threads on each node in the cluster.- Throws:
java.io.IOException
-
hotThreads
public final java.util.concurrent.CompletableFuture<HotThreadsResponse> hotThreads(java.util.function.Function<HotThreadsRequest.Builder,ObjectBuilder<HotThreadsRequest>> fn) throws java.io.IOExceptionReturns information about hot threads on each node in the cluster.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
info
public java.util.concurrent.CompletableFuture<InfoResponse> info(InfoRequest request) throws java.io.IOExceptionReturns information about nodes in the cluster.- Throws:
java.io.IOException
-
info
public final java.util.concurrent.CompletableFuture<InfoResponse> info(java.util.function.Function<InfoRequest.Builder,ObjectBuilder<InfoRequest>> fn) throws java.io.IOExceptionReturns information about nodes in the cluster.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
reloadSecureSettings
public java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(ReloadSecureSettingsRequest request) throws java.io.IOExceptionReloads secure settings.- Throws:
java.io.IOException
-
reloadSecureSettings
public final java.util.concurrent.CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws java.io.IOExceptionReloads secure settings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
stats
public java.util.concurrent.CompletableFuture<StatsResponse> stats(StatsRequest request) throws java.io.IOExceptionReturns statistical information about nodes in the cluster.- Throws:
java.io.IOException
-
stats
public final java.util.concurrent.CompletableFuture<StatsResponse> stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn) throws java.io.IOExceptionReturns statistical information about nodes in the cluster.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
usage
public java.util.concurrent.CompletableFuture<UsageResponse> usage(UsageRequest request) throws java.io.IOExceptionReturns low-level information about REST actions usage on nodes.- Throws:
java.io.IOException
-
usage
public final java.util.concurrent.CompletableFuture<UsageResponse> usage(java.util.function.Function<UsageRequest.Builder,ObjectBuilder<UsageRequest>> fn) throws java.io.IOExceptionReturns low-level information about REST actions usage on nodes.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
-
withRequestOptions
Creates a newNodesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<NodesAsyncClient>
-
withRequestOptions
public NodesAsyncClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newNodesAsyncClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.- Parameters:
fn- a function taking an options builder initialized with the current request options, or initialized with default values.
-