Class ElasticsearchNodesClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchNodesClient>
co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchNodesClient
extends ApiClient<ElasticsearchTransport,ElasticsearchNodesClient>
Client for the nodes namespace.
-
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 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.final HotThreadsResponseThis 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.final NodesInfoResponseReturns 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.final NodesStatsResponseReturns cluster nodes statistics.usage()Returns information on the usage of features.usage(NodesUsageRequest request) Returns information on the usage of features.final NodesUsageResponseReturns 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, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchNodesClient
-
ElasticsearchNodesClient
public ElasticsearchNodesClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchNodesClient>
-
clearRepositoriesMeteringArchive
public ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) throws IOException, ElasticsearchException You can use this API to clear the archived repositories metering information in the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearRepositoriesMeteringArchive
public final ClearRepositoriesMeteringArchiveResponse clearRepositoriesMeteringArchive(Function<ClearRepositoriesMeteringArchiveRequest.Builder, ObjectBuilder<ClearRepositoriesMeteringArchiveRequest>> fn) throws IOException, ElasticsearchExceptionYou 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- Throws:
IOExceptionElasticsearchException- See Also:
-
getRepositoriesMeteringInfo
public GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) throws IOException, ElasticsearchException 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.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRepositoriesMeteringInfo
public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(Function<GetRepositoriesMeteringInfoRequest.Builder, ObjectBuilder<GetRepositoriesMeteringInfoRequest>> fn) throws IOException, ElasticsearchExceptionYou 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- Throws:
IOExceptionElasticsearchException- See Also:
-
hotThreads
public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOException, ElasticsearchException 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.- Throws:
IOExceptionElasticsearchException- See Also:
-
hotThreads
public final HotThreadsResponse hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) throws IOException, ElasticsearchExceptionThis 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- Throws:
IOExceptionElasticsearchException- 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.- Throws:
IOExceptionElasticsearchException- See Also:
-
info
Returns cluster nodes information.- Throws:
IOExceptionElasticsearchException- See Also:
-
info
public final NodesInfoResponse info(Function<NodesInfoRequest.Builder, ObjectBuilder<NodesInfoRequest>> fn) throws IOException, ElasticsearchExceptionReturns cluster nodes information.- Parameters:
fn- a function that initializes a builder to create theNodesInfoRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
info
Returns cluster nodes information.- Throws:
IOExceptionElasticsearchException- See Also:
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws IOException, ElasticsearchException Reloads the keystore on nodes in the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
reloadSecureSettings
public final ReloadSecureSettingsResponse reloadSecureSettings(Function<ReloadSecureSettingsRequest.Builder, ObjectBuilder<ReloadSecureSettingsRequest>> fn) throws IOException, ElasticsearchExceptionReloads the keystore on nodes in the cluster.- Parameters:
fn- a function that initializes a builder to create theReloadSecureSettingsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
reloadSecureSettings
public ReloadSecureSettingsResponse reloadSecureSettings() throws IOException, ElasticsearchExceptionReloads the keystore on nodes in the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public NodesStatsResponse stats(NodesStatsRequest request) throws IOException, ElasticsearchException Returns cluster nodes statistics.- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public final NodesStatsResponse stats(Function<NodesStatsRequest.Builder, ObjectBuilder<NodesStatsRequest>> fn) throws IOException, ElasticsearchExceptionReturns cluster nodes statistics.- Parameters:
fn- a function that initializes a builder to create theNodesStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
Returns cluster nodes statistics.- Throws:
IOExceptionElasticsearchException- See Also:
-
usage
public NodesUsageResponse usage(NodesUsageRequest request) throws IOException, ElasticsearchException Returns information on the usage of features.- Throws:
IOExceptionElasticsearchException- See Also:
-
usage
public final NodesUsageResponse usage(Function<NodesUsageRequest.Builder, ObjectBuilder<NodesUsageRequest>> fn) throws IOException, ElasticsearchExceptionReturns information on the usage of features.- Parameters:
fn- a function that initializes a builder to create theNodesUsageRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
usage
Returns information on the usage of features.- Throws:
IOExceptionElasticsearchException- See Also:
-