Package org.elasticsearch.client
Class FeaturesClient
java.lang.Object
org.elasticsearch.client.FeaturesClient
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 Snapshot API.
-
Method Summary
Modifier and TypeMethodDescriptiongetFeatures
(GetFeaturesRequest getFeaturesRequest, RequestOptions options) Deprecated.Get a list of features which can be included in a snapshot as feature states.getFeaturesAsync
(GetFeaturesRequest getFeaturesRequest, RequestOptions options, ActionListener<GetFeaturesResponse> listener) Deprecated.Asynchronously get a list of features which can be included in a snapshot as feature states.resetFeatures
(ResetFeaturesRequest resetFeaturesRequest, RequestOptions options) Deprecated.Reset the state of Elasticsearch features, deleting system indices and performing other cleanup operations.resetFeaturesAsync
(ResetFeaturesRequest resetFeaturesRequest, RequestOptions options, ActionListener<ResetFeaturesResponse> listener) Deprecated.Asynchronously reset the state of Elasticsearch features, deleting system indices and performing other cleanup operations.
-
Method Details
-
getFeatures
public GetFeaturesResponse getFeatures(GetFeaturesRequest getFeaturesRequest, RequestOptions options) throws IOException Deprecated.Get a list of features which can be included in a snapshot as feature states. See Get Snapshottable Features API on elastic.co- Parameters:
getFeaturesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.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
-
getFeaturesAsync
public Cancellable getFeaturesAsync(GetFeaturesRequest getFeaturesRequest, RequestOptions options, ActionListener<GetFeaturesResponse> listener) Deprecated.Asynchronously get a list of features which can be included in a snapshot as feature states. See Get Snapshottable Features API on elastic.co- Parameters:
getFeaturesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
resetFeatures
public ResetFeaturesResponse resetFeatures(ResetFeaturesRequest resetFeaturesRequest, RequestOptions options) throws IOException Deprecated.Reset the state of Elasticsearch features, deleting system indices and performing other cleanup operations. See Rest Features API on elastic.co- Parameters:
resetFeaturesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.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
-
resetFeaturesAsync
public Cancellable resetFeaturesAsync(ResetFeaturesRequest resetFeaturesRequest, RequestOptions options, ActionListener<ResetFeaturesResponse> listener) Deprecated.Asynchronously reset the state of Elasticsearch features, deleting system indices and performing other cleanup operations. See Get Snapshottable Features API on elastic.co- Parameters:
resetFeaturesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-