Class OpenSearchNodesClientBase<Self extends OpenSearchNodesClientBase<Self>>
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,Self>
org.opensearch.client.opensearch.nodes.OpenSearchNodesClientBase<Self>
- Direct Known Subclasses:
OpenSearchNodesClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public abstract class OpenSearchNodesClientBase<Self extends OpenSearchNodesClientBase<Self>>
extends ApiClient<OpenSearchTransport,Self>
Client for the nodes namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchNodesClientBase(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal NodesInfoResponseinfo()Returns information about nodes in the cluster.final NodesInfoResponseReturns information about nodes in the cluster.info(NodesInfoRequest request) Returns information about nodes in the cluster.Reloads secure settings.reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) Reloads secure settings.Reloads secure settings.final NodesStatsResponsestats()Returns statistical information about nodes in the cluster.final NodesStatsResponseReturns statistical information about nodes in the cluster.stats(NodesStatsRequest request) Returns statistical information about nodes in the cluster.final NodesUsageResponseusage()Returns low-level information about REST actions usage on nodes.final NodesUsageResponseReturns low-level information about REST actions usage on nodes.usage(NodesUsageRequest request) Returns low-level information about REST actions usage on nodes.Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
OpenSearchNodesClientBase
public OpenSearchNodesClientBase(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
info
Returns information about nodes in the cluster.- Throws:
IOExceptionOpenSearchException
-
info
public final NodesInfoResponse info(Function<NodesInfoRequest.Builder, ObjectBuilder<NodesInfoRequest>> fn) throws IOException, OpenSearchExceptionReturns information about nodes in the cluster.- Parameters:
fn- a function that initializes a builder to create theNodesInfoRequest- Throws:
IOExceptionOpenSearchException
-
info
Returns information about nodes in the cluster.- Throws:
IOExceptionOpenSearchException
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws IOException, OpenSearchException Reloads secure settings.- Throws:
IOExceptionOpenSearchException
-
reloadSecureSettings
public final ReloadSecureSettingsResponse reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws IOException, OpenSearchExceptionReloads secure settings.- Parameters:
fn- a function that initializes a builder to create theReloadSecureSettingsRequest- Throws:
IOExceptionOpenSearchException
-
reloadSecureSettings
public final ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, OpenSearchExceptionReloads secure settings.- Throws:
IOExceptionOpenSearchException
-
stats
Returns statistical information about nodes in the cluster.- Throws:
IOExceptionOpenSearchException
-
stats
public final NodesStatsResponse stats(Function<NodesStatsRequest.Builder, ObjectBuilder<NodesStatsRequest>> fn) throws IOException, OpenSearchExceptionReturns statistical information about nodes in the cluster.- Parameters:
fn- a function that initializes a builder to create theNodesStatsRequest- Throws:
IOExceptionOpenSearchException
-
stats
Returns statistical information about nodes in the cluster.- Throws:
IOExceptionOpenSearchException
-
usage
Returns low-level information about REST actions usage on nodes.- Throws:
IOExceptionOpenSearchException
-
usage
public final NodesUsageResponse usage(Function<NodesUsageRequest.Builder, ObjectBuilder<NodesUsageRequest>> fn) throws IOException, OpenSearchExceptionReturns low-level information about REST actions usage on nodes.- Parameters:
fn- a function that initializes a builder to create theNodesUsageRequest- Throws:
IOExceptionOpenSearchException
-
usage
Returns low-level information about REST actions usage on nodes.- Throws:
IOExceptionOpenSearchException
-