Class NodesClient
java.lang.Object
org.opensearch.client.base.ApiClient<NodesClient>
org.opensearch.client.opensearch.api.nodes.NodesClient
public class NodesClient extends ApiClient<NodesClient>
Client for the nodes namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NodesClient(Transport transport)NodesClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description HotThreadsResponsehotThreads(java.util.function.Function<HotThreadsRequest.Builder,ObjectBuilder<HotThreadsRequest>> fn)Returns information about hot threads on each node in the cluster.HotThreadsResponsehotThreads(HotThreadsRequest request)Returns information about hot threads on each node in the cluster.InfoResponseinfo(java.util.function.Function<InfoRequest.Builder,ObjectBuilder<InfoRequest>> fn)Returns information about nodes in the cluster.InfoResponseinfo(InfoRequest request)Returns information about nodes in the cluster.ReloadSecureSettingsResponsereloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn)Reloads secure settings.ReloadSecureSettingsResponsereloadSecureSettings(ReloadSecureSettingsRequest request)Reloads secure settings.StatsResponsestats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn)Returns statistical information about nodes in the cluster.StatsResponsestats(StatsRequest request)Returns statistical information about nodes in the cluster.UsageResponseusage(java.util.function.Function<UsageRequest.Builder,ObjectBuilder<UsageRequest>> fn)Returns low-level information about REST actions usage on nodes.UsageResponseusage(UsageRequest request)Returns low-level information about REST actions usage on nodes.NodesClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newNodesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.NodesClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newNodesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
hotThreads
Returns information about hot threads on each node in the cluster.- Throws:
java.io.IOException
-
hotThreads
public final 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
Returns information about nodes in the cluster.- Throws:
java.io.IOException
-
info
public final 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 ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws java.io.IOExceptionReloads secure settings.- Throws:
java.io.IOException
-
reloadSecureSettings
public final 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
Returns statistical information about nodes in the cluster.- Throws:
java.io.IOException
-
stats
public final 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
Returns low-level information about REST actions usage on nodes.- Throws:
java.io.IOException
-
usage
public final 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 newNodesClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<NodesClient>
-
withRequestOptions
public NodesClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newNodesClient(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.
-