Class ElasticsearchLogstashClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLogstashClient>
co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchLogstashClient
extends ApiClient<ElasticsearchTransport,ElasticsearchLogstashClient>
Client for the logstash namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchLogstashClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeletePipeline
(DeletePipelineRequest request) Delete a Logstash pipeline.final BooleanResponse
Delete a Logstash pipeline.Get Logstash pipelines.getPipeline
(GetPipelineRequest request) Get Logstash pipelines.final GetPipelineResponse
Get Logstash pipelines.putPipeline
(PutPipelineRequest request) Create or update a Logstash pipeline.final BooleanResponse
Create or update a Logstash pipeline.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchLogstashClient
-
ElasticsearchLogstashClient
public ElasticsearchLogstashClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchLogstashClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchLogstashClient>
-
deletePipeline
public BooleanResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Delete a Logstash pipeline. Delete a pipeline that is used for Logstash Central Management. If the request succeeds, you receive an empty response with an appropriate status code.- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePipeline
public final BooleanResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDelete a Logstash pipeline. Delete a pipeline that is used for Logstash Central Management. If the request succeeds, you receive an empty response with an appropriate status code.- Parameters:
fn
- a function that initializes a builder to create theDeletePipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Get Logstash pipelines. Get pipelines that are used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionGet Logstash pipelines. Get pipelines that are used for Logstash Central Management.- Parameters:
fn
- a function that initializes a builder to create theGetPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
Get Logstash pipelines. Get pipelines that are used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public BooleanResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Create or update a Logstash pipeline.Create a pipeline that is used for Logstash Central Management. If the specified pipeline exists, it is replaced.
- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public final BooleanResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a Logstash pipeline.Create a pipeline that is used for Logstash Central Management. If the specified pipeline exists, it is replaced.
- Parameters:
fn
- a function that initializes a builder to create thePutPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-