Class ClusterClient

java.lang.Object
org.elasticsearch.client.ClusterClient

@Deprecated public final class ClusterClient extends Object
Deprecated.
The High Level Rest Client is deprecated in favor of the Elasticsearch Java API Client
A wrapper for the RestHighLevelClient that provides methods for accessing the Cluster API.

See Cluster API on elastic.co

  • Method Summary

    Modifier and Type
    Method
    Description
    org.elasticsearch.action.support.master.AcknowledgedResponse
    deleteComponentTemplate(DeleteComponentTemplateRequest req, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Delete a component template using the Component Templates API
    org.elasticsearch.client.Cancellable
    deleteComponentTemplateAsync(DeleteComponentTemplateRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
    Deprecated.
    Asynchronously delete a component template using the Component Templates API
    boolean
    existsComponentTemplate(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Uses the Component Templates API to determine if component templates exist
    org.elasticsearch.client.Cancellable
    existsComponentTemplateAsync(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<Boolean> listener)
    Deprecated.
    Uses the Index Templates API to determine if index templates exist
    getComponentTemplate(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Gets component templates using the Components Templates API
    org.elasticsearch.client.Cancellable
    getComponentTemplateAsync(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetComponentTemplatesResponse> listener)
    Deprecated.
    Asynchronously gets component templates using the Components Templates API
    org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsResponse
    getSettings(org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsRequest clusterGetSettingsRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Get the cluster wide settings using the Cluster Get Settings API.
    org.elasticsearch.client.Cancellable
    getSettingsAsync(org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsRequest clusterGetSettingsRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsResponse> listener)
    Deprecated.
    Asynchronously get the cluster wide settings using the Cluster Get Settings API.
    org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse
    health(org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest healthRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Get cluster health using the Cluster Health API.
    org.elasticsearch.client.Cancellable
    healthAsync(org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest healthRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse> listener)
    Deprecated.
    Asynchronously get cluster health using the Cluster Health API.
    org.elasticsearch.action.support.master.AcknowledgedResponse
    putComponentTemplate(PutComponentTemplateRequest putComponentTemplateRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Puts a component template using the Component Templates API.
    org.elasticsearch.client.Cancellable
    putComponentTemplateAsync(PutComponentTemplateRequest putComponentTemplateRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
    Deprecated.
    Asynchronously puts a component template using the Component Templates API.
    org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse
    putSettings(org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Updates cluster wide specific settings using the Cluster Update Settings API.
    org.elasticsearch.client.Cancellable
    putSettingsAsync(org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse> listener)
    Deprecated.
    Asynchronously updates cluster wide specific settings using the Cluster Update Settings API.
    remoteInfo(RemoteInfoRequest request, org.elasticsearch.client.RequestOptions options)
    Deprecated.
    Get the remote cluster information using the Remote cluster info API.
    org.elasticsearch.client.Cancellable
    remoteInfoAsync(RemoteInfoRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<RemoteInfoResponse> listener)
    Deprecated.
    Asynchronously get remote cluster information using the Remote cluster info API.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • putSettings

      public org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse putSettings(org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Updates cluster wide specific settings using the Cluster Update Settings API. See Cluster Update Settings API on elastic.co
      Parameters:
      clusterUpdateSettingsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • putSettingsAsync

      public org.elasticsearch.client.Cancellable putSettingsAsync(org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse> listener)
      Deprecated.
      Asynchronously updates cluster wide specific settings using the Cluster Update Settings API. See Cluster Update Settings API on elastic.co
      Parameters:
      clusterUpdateSettingsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • getSettings

      public org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsResponse getSettings(org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsRequest clusterGetSettingsRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Get the cluster wide settings using the Cluster Get Settings API. See Cluster Get Settings API on elastic.co
      Parameters:
      clusterGetSettingsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • getSettingsAsync

      public org.elasticsearch.client.Cancellable getSettingsAsync(org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsRequest clusterGetSettingsRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsResponse> listener)
      Deprecated.
      Asynchronously get the cluster wide settings using the Cluster Get Settings API. See Cluster Get Settings API on elastic.co
      Parameters:
      clusterGetSettingsRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • health

      public org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse health(org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest healthRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Get cluster health using the Cluster Health API. See Cluster Health API on elastic.co

      If timeout occurred, ClusterHealthResponse will have isTimedOut() == true and status() == RestStatus.REQUEST_TIMEOUT

      Parameters:
      healthRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • healthAsync

      public org.elasticsearch.client.Cancellable healthAsync(org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest healthRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse> listener)
      Deprecated.
      Asynchronously get cluster health using the Cluster Health API. See Cluster Health API on elastic.co If timeout occurred, ClusterHealthResponse will have isTimedOut() == true and status() == RestStatus.REQUEST_TIMEOUT
      Parameters:
      healthRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • remoteInfo

      public RemoteInfoResponse remoteInfo(RemoteInfoRequest request, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Get the remote cluster information using the Remote cluster info API. See Remote cluster info API on elastic.co
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • remoteInfoAsync

      public org.elasticsearch.client.Cancellable remoteInfoAsync(RemoteInfoRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<RemoteInfoResponse> listener)
      Deprecated.
      Asynchronously get remote cluster information using the Remote cluster info API. See Remote cluster info API on elastic.co
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • deleteComponentTemplate

      public org.elasticsearch.action.support.master.AcknowledgedResponse deleteComponentTemplate(DeleteComponentTemplateRequest req, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Delete a component template using the Component Templates API
      Parameters:
      req - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • deleteComponentTemplateAsync

      public org.elasticsearch.client.Cancellable deleteComponentTemplateAsync(DeleteComponentTemplateRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
      Deprecated.
      Asynchronously delete a component template using the Component Templates API
      Parameters:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • putComponentTemplate

      public org.elasticsearch.action.support.master.AcknowledgedResponse putComponentTemplate(PutComponentTemplateRequest putComponentTemplateRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Puts a component template using the Component Templates API.
      Parameters:
      putComponentTemplateRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • putComponentTemplateAsync

      public org.elasticsearch.client.Cancellable putComponentTemplateAsync(PutComponentTemplateRequest putComponentTemplateRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)
      Deprecated.
      Asynchronously puts a component template using the Component Templates API.
      Parameters:
      putComponentTemplateRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • getComponentTemplate

      public GetComponentTemplatesResponse getComponentTemplate(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Gets component templates using the Components Templates API
      Parameters:
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      getComponentTemplatesRequest - the request
      Returns:
      the response
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • getComponentTemplateAsync

      public org.elasticsearch.client.Cancellable getComponentTemplateAsync(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetComponentTemplatesResponse> listener)
      Deprecated.
      Asynchronously gets component templates using the Components Templates API
      Parameters:
      getComponentTemplatesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request
    • existsComponentTemplate

      public boolean existsComponentTemplate(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options) throws IOException
      Deprecated.
      Uses the Component Templates API to determine if component templates exist
      Parameters:
      componentTemplatesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      Returns:
      true if any index templates in the request exist, false otherwise
      Throws:
      IOException - in case there is a problem sending the request or parsing back the response
    • existsComponentTemplateAsync

      public org.elasticsearch.client.Cancellable existsComponentTemplateAsync(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<Boolean> listener)
      Deprecated.
      Uses the Index Templates API to determine if index templates exist
      Parameters:
      componentTemplatesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion. The listener will be called with the value true
      Returns:
      cancellable that may be used to cancel the request