Class ElasticsearchShutdownAsyncClient

java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownAsyncClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class ElasticsearchShutdownAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
Client for the shutdown namespace.
  • Constructor Details

  • Method Details

    • withTransportOptions

      public ElasticsearchShutdownAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
      Description copied from class: ApiClient
      Creates a new client with some request options
      Specified by:
      withTransportOptions in class ApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
    • deleteNode

      Cancel node shutdown preparations. Remove a node from the shutdown list so it can resume normal operations. You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster. Shutdown requests are never removed automatically by Elasticsearch.

      NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      See Also:
    • deleteNode

      Cancel node shutdown preparations. Remove a node from the shutdown list so it can resume normal operations. You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster. Shutdown requests are never removed automatically by Elasticsearch.

      NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      Parameters:
      fn - a function that initializes a builder to create the DeleteNodeRequest
      See Also:
    • getNode

      Get the shutdown status.

      Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled. The API returns status information for each part of the shut down process.

      NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      See Also:
    • getNode

      Get the shutdown status.

      Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled. The API returns status information for each part of the shut down process.

      NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      Parameters:
      fn - a function that initializes a builder to create the GetNodeRequest
      See Also:
    • getNode

      Get the shutdown status.

      Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled. The API returns status information for each part of the shut down process.

      NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      See Also:
    • putNode

      Prepare a node to be shut down.

      NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      The API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster. This ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.

      You must specify the type of shutdown: restart, remove, or replace. If a node is already being prepared for shutdown, you can use this API to change the shutdown type.

      IMPORTANT: This API does NOT terminate the Elasticsearch process. Monitor the node shutdown status to determine when it is safe to stop Elasticsearch.

      See Also:
    • putNode

      Prepare a node to be shut down.

      NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

      If you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.

      If the operator privileges feature is enabled, you must be an operator to use this API.

      The API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster. This ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.

      You must specify the type of shutdown: restart, remove, or replace. If a node is already being prepared for shutdown, you can use this API to change the shutdown type.

      IMPORTANT: This API does NOT terminate the Elasticsearch process. Monitor the node shutdown status to determine when it is safe to stop Elasticsearch.

      Parameters:
      fn - a function that initializes a builder to create the PutNodeRequest
      See Also: