Package org.elasticsearch.client
Class ClusterClient
java.lang.Object
org.elasticsearch.client.ClusterClient
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.
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.action.support.master.AcknowledgedResponsedeleteComponentTemplate(DeleteComponentTemplateRequest req, org.elasticsearch.client.RequestOptions options) Deprecated.Delete a component template using the Component Templates APIorg.elasticsearch.client.CancellabledeleteComponentTemplateAsync(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 APIbooleanexistsComponentTemplate(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options) Deprecated.Uses the Component Templates API to determine if component templates existorg.elasticsearch.client.CancellableexistsComponentTemplateAsync(ComponentTemplatesExistRequest componentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<Boolean> listener) Deprecated.Uses the Index Templates API to determine if index templates existgetComponentTemplate(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options) Deprecated.Gets component templates using the Components Templates APIorg.elasticsearch.client.CancellablegetComponentTemplateAsync(GetComponentTemplatesRequest getComponentTemplatesRequest, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetComponentTemplatesResponse> listener) Deprecated.Asynchronously gets component templates using the Components Templates APIorg.elasticsearch.action.admin.cluster.settings.ClusterGetSettingsResponsegetSettings(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.CancellablegetSettingsAsync(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.ClusterHealthResponsehealth(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.CancellablehealthAsync(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.AcknowledgedResponseputComponentTemplate(PutComponentTemplateRequest putComponentTemplateRequest, org.elasticsearch.client.RequestOptions options) Deprecated.Puts a component template using the Component Templates API.org.elasticsearch.client.CancellableputComponentTemplateAsync(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.ClusterUpdateSettingsResponseputSettings(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.CancellableputSettingsAsync(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.CancellableremoteInfoAsync(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.
-
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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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.coIf timeout occurred,
ClusterHealthResponsewill have isTimedOut() == true and status() == RestStatus.REQUEST_TIMEOUT- Parameters:
healthRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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,ClusterHealthResponsewill have isTimedOut() == true and status() == RestStatus.REQUEST_TIMEOUT- Parameters:
healthRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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), useRequestOptions.DEFAULTif nothing needs to be customizedgetComponentTemplatesRequest- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif 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 requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion. The listener will be called with the valuetrue- Returns:
- cancellable that may be used to cancel the request
-