Class ElasticsearchNodesAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchNodesAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionClear the archived repositories metering.clearRepositoriesMeteringArchive
(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) Clear the archived repositories metering.Get cluster repositories metering.getRepositoriesMeteringInfo
(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) Get cluster repositories metering.Get the hot threads for nodes.hotThreads
(HotThreadsRequest request) Get the hot threads for nodes.Get the hot threads for nodes.info()
Get node information.info
(NodesInfoRequest request) Get node information.Get node information.Reload the keystore on nodes in the cluster.Reload the keystore on nodes in the cluster.reloadSecureSettings
(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) Reload the keystore on nodes in the cluster.stats()
Get node statistics.stats
(NodesStatsRequest request) Get node statistics.Get node statistics.usage()
Get feature usage information.usage
(NodesUsageRequest request) Get feature usage information.Get feature usage information.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, 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) Clear the archived repositories metering. Clear the archived repositories metering information in the cluster.- See Also:
-
clearRepositoriesMeteringArchive
public final CompletableFuture<ClearRepositoriesMeteringArchiveResponse> clearRepositoriesMeteringArchive(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) Clear the archived repositories metering. 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) Get cluster repositories metering. Get repositories metering information for a cluster. This API exposes monotonically non-decreasing counters and it is 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 will not be present after node restarts.- See Also:
-
getRepositoriesMeteringInfo
public final CompletableFuture<GetRepositoriesMeteringInfoResponse> getRepositoriesMeteringInfo(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) Get cluster repositories metering. Get repositories metering information for a cluster. This API exposes monotonically non-decreasing counters and it is 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 will not be present after node restarts.- Parameters:
fn
- a function that initializes a builder to create theGetRepositoriesMeteringInfoRequest
- See Also:
-
hotThreads
Get the hot threads for nodes. Get a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of the top hot threads for each node.- See Also:
-
hotThreads
public final CompletableFuture<HotThreadsResponse> hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) Get the hot threads for nodes. Get a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of the top hot threads for each node.- Parameters:
fn
- a function that initializes a builder to create theHotThreadsRequest
- See Also:
-
hotThreads
Get the hot threads for nodes. Get a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of the top hot threads for each node.- See Also:
-
info
Get node information.By default, the API returns all attributes and core settings for cluster nodes.
- See Also:
-
info
public final CompletableFuture<NodesInfoResponse> info(Function<NodesInfoRequest.Builder, ObjectBuilder<NodesInfoRequest>> fn) Get node information.By default, the API returns all attributes and core settings for cluster nodes.
- Parameters:
fn
- a function that initializes a builder to create theNodesInfoRequest
- See Also:
-
info
Get node information.By default, the API returns all attributes and core settings for cluster nodes.
- See Also:
-
reloadSecureSettings
public CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(ReloadSecureSettingsRequest request) Reload the keystore on nodes in the cluster.Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. That is, you can change them on disk and reload them without restarting any nodes in the cluster. When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.
When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.
- See Also:
-
reloadSecureSettings
public final CompletableFuture<ReloadSecureSettingsResponse> reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) Reload the keystore on nodes in the cluster.Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. That is, you can change them on disk and reload them without restarting any nodes in the cluster. When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.
When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.
- Parameters:
fn
- a function that initializes a builder to create theReloadSecureSettingsRequest
- See Also:
-
reloadSecureSettings
Reload the keystore on nodes in the cluster.Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. That is, you can change them on disk and reload them without restarting any nodes in the cluster. When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.
When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.
- See Also:
-
stats
Get node statistics. Get statistics for nodes in a cluster. By default, all stats are returned. You can limit the returned information by using metrics.- See Also:
-
stats
public final CompletableFuture<NodesStatsResponse> stats(Function<NodesStatsRequest.Builder, ObjectBuilder<NodesStatsRequest>> fn) Get node statistics. Get statistics for nodes in a cluster. By default, all stats are returned. You can limit the returned information by using metrics.- Parameters:
fn
- a function that initializes a builder to create theNodesStatsRequest
- See Also:
-
stats
Get node statistics. Get statistics for nodes in a cluster. By default, all stats are returned. You can limit the returned information by using metrics.- See Also:
-
usage
Get feature usage information.- See Also:
-
usage
public final CompletableFuture<NodesUsageResponse> usage(Function<NodesUsageRequest.Builder, ObjectBuilder<NodesUsageRequest>> fn) Get feature usage information.- Parameters:
fn
- a function that initializes a builder to create theNodesUsageRequest
- See Also:
-
usage
Get feature usage information.- See Also:
-