Class ElasticsearchFleetClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchFleetClient>
co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchFleetClient
extends ApiClient<ElasticsearchTransport,ElasticsearchFleetClient>
Client for the fleet namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchFleetClient
(ElasticsearchTransport transport) ElasticsearchFleetClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionsearch
(FleetSearchRequest request) Overload ofsearch(FleetSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.<TDocument>
FleetSearchResponse<TDocument>search
(FleetSearchRequest request, Class<TDocument> tDocumentClass) Run a Fleet search.<TDocument>
FleetSearchResponse<TDocument>search
(FleetSearchRequest request, Type tDocumentType) Run a Fleet search.final FleetSearchResponse<Void>
Overload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.final <TDocument>
FleetSearchResponse<TDocument>search
(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) Run a Fleet search.final <TDocument>
FleetSearchResponse<TDocument>search
(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) Run a Fleet search.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
-
ElasticsearchFleetClient
-
ElasticsearchFleetClient
public ElasticsearchFleetClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchFleetClient>
-
search
public <TDocument> FleetSearchResponse<TDocument> search(FleetSearchRequest request, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchException Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TDocument> FleetSearchResponse<TDocument> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchExceptionRun a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Parameters:
fn
- a function that initializes a builder to create theFleetSearchRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public FleetSearchResponse<Void> search(FleetSearchRequest request) throws IOException, ElasticsearchException Overload ofsearch(FleetSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public final FleetSearchResponse<Void> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn) throws IOException, ElasticsearchExceptionOverload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public <TDocument> FleetSearchResponse<TDocument> search(FleetSearchRequest request, Type tDocumentType) throws IOException, ElasticsearchException Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TDocument> FleetSearchResponse<TDocument> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) throws IOException, ElasticsearchExceptionRun a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Parameters:
fn
- a function that initializes a builder to create theFleetSearchRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-