Package org.elasticsearch.client
Class IngestClient
java.lang.Object
org.elasticsearch.client.IngestClient
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 Ingest API.
-
Method Summary
Modifier and TypeMethodDescriptiondeletePipeline
(DeletePipelineRequest request, RequestOptions options) Deprecated.Delete an existing pipeline.deletePipelineAsync
(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete an existing pipeline.geoIpStats
(MainRequest request, RequestOptions options) Deprecated.geoIpStatsAsync
(MainRequest request, RequestOptions options, ActionListener<GeoIpStatsResponse> listener) Deprecated.getPipeline
(GetPipelineRequest request, RequestOptions options) Deprecated.Get an existing pipeline.getPipelineAsync
(GetPipelineRequest request, RequestOptions options, ActionListener<GetPipelineResponse> listener) Deprecated.Asynchronously get an existing pipeline.putPipeline
(PutPipelineRequest request, RequestOptions options) Deprecated.Add a pipeline or update an existing pipeline.putPipelineAsync
(PutPipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously add a pipeline or update an existing pipeline.simulate
(SimulatePipelineRequest request, RequestOptions options) Deprecated.Simulate a pipeline on a set of documents provided in the requestsimulateAsync
(SimulatePipelineRequest request, RequestOptions options, ActionListener<SimulatePipelineResponse> listener) Deprecated.Asynchronously simulate a pipeline on a set of documents provided in the request
-
Method Details
-
putPipeline
public AcknowledgedResponse putPipeline(PutPipelineRequest request, RequestOptions options) throws IOException Deprecated.Add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request
- 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
-
putPipelineAsync
public Cancellable putPipelineAsync(PutPipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request
- 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
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request, RequestOptions options) throws IOException Deprecated.Get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request
- 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
-
getPipelineAsync
public Cancellable getPipelineAsync(GetPipelineRequest request, RequestOptions options, ActionListener<GetPipelineResponse> listener) Deprecated.Asynchronously get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request
- 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
-
deletePipeline
public AcknowledgedResponse deletePipeline(DeletePipelineRequest request, RequestOptions options) throws IOException Deprecated.Delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request
- 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
-
deletePipelineAsync
public Cancellable deletePipelineAsync(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request
- 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
-
simulate
public SimulatePipelineResponse simulate(SimulatePipelineRequest request, RequestOptions options) throws IOException Deprecated.Simulate a pipeline on a set of documents provided in the request- Parameters:
request
- 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
-
simulateAsync
public Cancellable simulateAsync(SimulatePipelineRequest request, RequestOptions options, ActionListener<SimulatePipelineResponse> listener) Deprecated.Asynchronously simulate a pipeline on a set of documents provided in the request- Parameters:
request
- 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
-
geoIpStats
public GeoIpStatsResponse geoIpStats(MainRequest request, RequestOptions options) throws IOException Deprecated.- Throws:
IOException
-
geoIpStatsAsync
public Cancellable geoIpStatsAsync(MainRequest request, RequestOptions options, ActionListener<GeoIpStatsResponse> listener) Deprecated.
-