Class ElasticsearchNodesClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchNodesClient
(ElasticsearchTransport transport) ElasticsearchNodesClient
(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.final HotThreadsResponse
Get the hot threads for nodes.info()
Get node information.info
(NodesInfoRequest request) Get node information.final NodesInfoResponse
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.final NodesStatsResponse
Get node statistics.usage()
Get feature usage information.usage
(NodesUsageRequest request) Get feature usage information.final NodesUsageResponse
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
-
ElasticsearchNodesClient
-
ElasticsearchNodesClient
public ElasticsearchNodesClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchNodesClient>
-
clearRepositoriesMeteringArchive
public ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) throws IOException, ElasticsearchException Clear the archived repositories metering. Clear the archived repositories metering information in the cluster.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearRepositoriesMeteringArchive
public final ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringArchive(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) throws IOException, ElasticsearchExceptionClear the archived repositories metering. Clear the archived repositories metering information in the cluster.- Parameters:
fn
- a function that initializes a builder to create theClearRepositoriesMeteringArchiveRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getRepositoriesMeteringInfo
public GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) throws IOException, ElasticsearchException 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
getRepositoriesMeteringInfo
public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
hotThreads
public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOException, ElasticsearchException 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
hotThreads
public final HotThreadsResponse hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
info
Get node information.By default, the API returns all attributes and core settings for cluster nodes.
- Throws:
IOException
ElasticsearchException
- See Also:
-
info
public final NodesInfoResponse info(Function<NodesInfoRequest.Builder, ObjectBuilder<NodesInfoRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
info
Get node information.By default, the API returns all attributes and core settings for cluster nodes.
- Throws:
IOException
ElasticsearchException
- See Also:
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws IOException, ElasticsearchException 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.
- Throws:
IOException
ElasticsearchException
- See Also:
-
reloadSecureSettings
public final ReloadSecureSettingsResponse reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws IOException, ElasticsearchExceptionReload 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
- Throws:
IOException
ElasticsearchException
- See Also:
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, ElasticsearchExceptionReload 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.
- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
public NodesStatsResponse stats(NodesStatsRequest request) throws IOException, ElasticsearchException 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
stats
public final NodesStatsResponse stats(Function<NodesStatsRequest.Builder, ObjectBuilder<NodesStatsRequest>> fn) throws IOException, ElasticsearchExceptionGet 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
- Throws:
IOException
ElasticsearchException
- 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.- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
public NodesUsageResponse usage(NodesUsageRequest request) throws IOException, ElasticsearchException Get feature usage information.- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
public final NodesUsageResponse usage(Function<NodesUsageRequest.Builder, ObjectBuilder<NodesUsageRequest>> fn) throws IOException, ElasticsearchExceptionGet feature usage information.- Parameters:
fn
- a function that initializes a builder to create theNodesUsageRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
Get feature usage information.- Throws:
IOException
ElasticsearchException
- See Also:
-