Class OpenSearchNodesClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchNodesClient>
-
- org.opensearch.client.opensearch.nodes.OpenSearchNodesClient
-
public class OpenSearchNodesClient extends ApiClient<OpenSearchTransport,OpenSearchNodesClient>
Client for the nodes namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchNodesClient(OpenSearchTransport transport)OpenSearchNodesClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HotThreadsResponsehotThreads()Returns information about hot threads on each node in the cluster.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.NodesInfoResponseinfo()Returns information about nodes in the cluster.NodesInfoResponseinfo(java.util.function.Function<NodesInfoRequest.Builder,ObjectBuilder<NodesInfoRequest>> fn)Returns information about nodes in the cluster.NodesInfoResponseinfo(NodesInfoRequest request)Returns information about nodes in the cluster.ReloadSecureSettingsResponsereloadSecureSettings()Reloads secure settings.ReloadSecureSettingsResponsereloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn)Reloads secure settings.ReloadSecureSettingsResponsereloadSecureSettings(ReloadSecureSettingsRequest request)Reloads secure settings.NodesStatsResponsestats()Returns statistical information about nodes in the cluster.NodesStatsResponsestats(java.util.function.Function<NodesStatsRequest.Builder,ObjectBuilder<NodesStatsRequest>> fn)Returns statistical information about nodes in the cluster.NodesStatsResponsestats(NodesStatsRequest request)Returns statistical information about nodes in the cluster.NodesUsageResponseusage()Returns low-level information about REST actions usage on nodes.NodesUsageResponseusage(java.util.function.Function<NodesUsageRequest.Builder,ObjectBuilder<NodesUsageRequest>> fn)Returns low-level information about REST actions usage on nodes.NodesUsageResponseusage(NodesUsageRequest request)Returns low-level information about REST actions usage on nodes.OpenSearchNodesClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchNodesClient
public OpenSearchNodesClient(OpenSearchTransport transport)
-
OpenSearchNodesClient
public OpenSearchNodesClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchNodesClient withTransportOptions(@Nullable TransportOptions transportOptions)
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 java.io.IOException, OpenSearchException
Returns information about hot threads on each node in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
hotThreads
public final HotThreadsResponse hotThreads(java.util.function.Function<HotThreadsRequest.Builder,ObjectBuilder<HotThreadsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about hot threads on each node in the cluster.- Parameters:
fn- a function that initializes a builder to create theHotThreadsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
hotThreads
public HotThreadsResponse hotThreads() throws java.io.IOException, OpenSearchException
Returns information about hot threads on each node in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
info
public NodesInfoResponse info(NodesInfoRequest request) throws java.io.IOException, OpenSearchException
Returns information about nodes in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
info
public final NodesInfoResponse info(java.util.function.Function<NodesInfoRequest.Builder,ObjectBuilder<NodesInfoRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about nodes in the cluster.- Parameters:
fn- a function that initializes a builder to create theNodesInfoRequest- Throws:
java.io.IOExceptionOpenSearchException
-
info
public NodesInfoResponse info() throws java.io.IOException, OpenSearchException
Returns information about nodes in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws java.io.IOException, OpenSearchException
Reloads secure settings.- Throws:
java.io.IOExceptionOpenSearchException
-
reloadSecureSettings
public final ReloadSecureSettingsResponse reloadSecureSettings(java.util.function.Function<ReloadSecureSettingsRequest.Builder,ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws java.io.IOException, OpenSearchException
Reloads secure settings.- Parameters:
fn- a function that initializes a builder to create theReloadSecureSettingsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings() throws java.io.IOException, OpenSearchException
Reloads secure settings.- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public NodesStatsResponse stats(NodesStatsRequest request) throws java.io.IOException, OpenSearchException
Returns statistical information about nodes in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public final NodesStatsResponse stats(java.util.function.Function<NodesStatsRequest.Builder,ObjectBuilder<NodesStatsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns statistical information about nodes in the cluster.- Parameters:
fn- a function that initializes a builder to create theNodesStatsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public NodesStatsResponse stats() throws java.io.IOException, OpenSearchException
Returns statistical information about nodes in the cluster.- Throws:
java.io.IOExceptionOpenSearchException
-
usage
public NodesUsageResponse usage(NodesUsageRequest request) throws java.io.IOException, OpenSearchException
Returns low-level information about REST actions usage on nodes.- Throws:
java.io.IOExceptionOpenSearchException
-
usage
public final NodesUsageResponse usage(java.util.function.Function<NodesUsageRequest.Builder,ObjectBuilder<NodesUsageRequest>> fn) throws java.io.IOException, OpenSearchException
Returns low-level information about REST actions usage on nodes.- Parameters:
fn- a function that initializes a builder to create theNodesUsageRequest- Throws:
java.io.IOExceptionOpenSearchException
-
usage
public NodesUsageResponse usage() throws java.io.IOException, OpenSearchException
Returns low-level information about REST actions usage on nodes.- Throws:
java.io.IOExceptionOpenSearchException
-
-