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) Deletes Logstash Pipelines used by Central Managementfinal BooleanResponseDeletes Logstash Pipelines used by Central ManagementgetPipeline(GetPipelineRequest request) Retrieves Logstash Pipelines used by Central Managementfinal GetPipelineResponseRetrieves Logstash Pipelines used by Central ManagementputPipeline(PutPipelineRequest request) Adds and updates Logstash Pipelines used for Central Managementfinal BooleanResponseAdds and updates Logstash Pipelines used for Central ManagementwithTransportOptions(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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchLogstashClient>
-
deletePipeline
public BooleanResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Deletes Logstash Pipelines used by Central Management- Throws:
IOExceptionElasticsearchException- See Also:
-
deletePipeline
public final BooleanResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDeletes Logstash Pipelines used by Central Management- Parameters:
fn- a function that initializes a builder to create theDeletePipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Retrieves Logstash Pipelines used by Central Management- Throws:
IOExceptionElasticsearchException- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves Logstash Pipelines used by Central Management- Parameters:
fn- a function that initializes a builder to create theGetPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public BooleanResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Adds and updates Logstash Pipelines used for Central Management- Throws:
IOExceptionElasticsearchException- See Also:
-
putPipeline
public final BooleanResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionAdds and updates Logstash Pipelines used for Central Management- Parameters:
fn- a function that initializes a builder to create thePutPipelineRequest- Throws:
IOExceptionElasticsearchException- See Also:
-