Class ElasticsearchNodesAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchNodesAsyncClient>
co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient
public class ElasticsearchNodesAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchNodesAsyncClient>
Client for the nodes namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchNodesAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionYou can use this API to clear the archived repositories metering information in the cluster.clearRepositoriesMeteringArchive
(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) You can use this API to clear the archived repositories metering information in the cluster.You can use the cluster repositories metering API to retrieve repositories metering information in a cluster.getRepositoriesMeteringInfo
(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) You can use the cluster repositories metering API to retrieve repositories metering information in a cluster.This API yields a breakdown of the hot threads on each selected node in the cluster.hotThreads
(HotThreadsRequest request) This API yields a breakdown of the hot threads on each selected node in the cluster.This API yields a breakdown of the hot threads on each selected node in the cluster.info()
Returns cluster nodes information.info
(NodesInfoRequest request) Returns cluster nodes information.Returns cluster nodes information.Reloads the keystore on nodes in the cluster.Reloads the keystore on nodes in the cluster.reloadSecureSettings
(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) Reloads the keystore on nodes in the cluster.stats()
Returns cluster nodes statistics.stats
(NodesStatsRequest request) Returns cluster nodes statistics.Returns cluster nodes statistics.usage()
Returns information on the usage of features.usage
(NodesUsageRequest request) Returns information on the usage of features.Returns information on the usage of features.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchNodesAsyncClient
-
ElasticsearchNodesAsyncClient
public ElasticsearchNodesAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchNodesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchNodesAsyncClient>
-
clearRepositoriesMeteringArchive
public CompletableFuture<ClearRepositoriesMeteringArchiveResponse> clearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) You can use this API to clear the archived repositories metering information in the cluster.- See Also:
-
clearRepositoriesMeteringArchive
public final CompletableFuture<ClearRepositoriesMeteringArchiveResponse> clearRepositoriesMeteringArchive(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) You can use this API to clear the archived repositories metering information in the cluster.- Parameters:
fn
- a function that initializes a builder to create theClearRepositoriesMeteringArchiveRequest
- See Also:
-
getRepositoriesMeteringInfo
public CompletableFuture<GetRepositoriesMeteringInfoResponse> getRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the information needed to compute aggregations over a period of time. Additionally, the information exposed by this API is volatile, meaning that it won’t be present after node restarts.- See Also:
-
getRepositoriesMeteringInfo
public final CompletableFuture<GetRepositoriesMeteringInfoResponse> getRepositoriesMeteringInfo(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the information needed to compute aggregations over a period of time. Additionally, the information exposed by this API is volatile, meaning that it won’t be present after node restarts.- Parameters:
fn
- a function that initializes a builder to create theGetRepositoriesMeteringInfoRequest
- See Also:
-
hotThreads
This API yields a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of each node’s top hot threads.- See Also:
-
hotThreads
public final CompletableFuture<HotThreadsResponse> hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) This API yields a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of each node’s top hot threads.- Parameters:
fn
- a function that initializes a builder to create theHotThreadsRequest
- See Also:
-
hotThreads
This API yields a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of each node’s top hot threads.- See Also:
-
info
Returns cluster nodes information.- See Also:
-
info
public final CompletableFuture<NodesInfoResponse> info(Function<NodesInfoRequest.Builder, ObjectBuilder<NodesInfoRequest>> fn) Returns cluster nodes information.- Parameters:
fn
- a function that initializes a builder to create theNodesInfoRequest
- See Also:
-
info
Returns cluster nodes information.- See Also:
-
reloadSecureSettings
public CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(ReloadSecureSettingsRequest request) Reloads the keystore on nodes in the cluster.- See Also:
-
reloadSecureSettings
public final CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) Reloads the keystore on nodes in the cluster.- Parameters:
fn
- a function that initializes a builder to create theReloadSecureSettingsRequest
- See Also:
-
reloadSecureSettings
Reloads the keystore on nodes in the cluster.- See Also:
-
stats
Returns cluster nodes statistics.- See Also:
-
stats
public final CompletableFuture<NodesStatsResponse> stats(Function<NodesStatsRequest.Builder, ObjectBuilder<NodesStatsRequest>> fn) Returns cluster nodes statistics.- Parameters:
fn
- a function that initializes a builder to create theNodesStatsRequest
- See Also:
-
stats
Returns cluster nodes statistics.- See Also:
-
usage
Returns information on the usage of features.- See Also:
-
usage
public final CompletableFuture<NodesUsageResponse> usage(Function<NodesUsageRequest.Builder, ObjectBuilder<NodesUsageRequest>> fn) Returns information on the usage of features.- Parameters:
fn
- a function that initializes a builder to create theNodesUsageRequest
- See Also:
-
usage
Returns information on the usage of features.- See Also:
-