Class ElasticsearchFleetClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchFleetClient>
co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetClient
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 TypeMethodDescription<TDocument>
FleetSearchResponse<TDocument>search(FleetSearchRequest request, Class<TDocument> tDocumentClass) Search API where the search will only be executed after specified checkpoints are available due to a refresh.<TDocument>
FleetSearchResponse<TDocument>search(FleetSearchRequest request, Type tDocumentType) Search API where the search will only be executed after specified checkpoints are available due to a refresh.final <TDocument>
FleetSearchResponse<TDocument>search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) Search API where the search will only be executed after specified checkpoints are available due to a refresh.final <TDocument>
FleetSearchResponse<TDocument>search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) Search API where the search will only be executed after specified checkpoints are available due to a refresh.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchFleetClient
-
ElasticsearchFleetClient
public ElasticsearchFleetClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchFleetClient>
-
search
public <TDocument> FleetSearchResponse<TDocument> search(FleetSearchRequest request, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchException Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public final <TDocument> FleetSearchResponse<TDocument> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchExceptionSearch API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.- Parameters:
fn- a function that initializes a builder to create theFleetSearchRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public <TDocument> FleetSearchResponse<TDocument> search(FleetSearchRequest request, Type tDocumentType) throws IOException, ElasticsearchException Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.- Throws:
IOExceptionElasticsearchException- See Also:
-
search
public final <TDocument> FleetSearchResponse<TDocument> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) throws IOException, ElasticsearchExceptionSearch API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.- Parameters:
fn- a function that initializes a builder to create theFleetSearchRequest- Throws:
IOExceptionElasticsearchException- See Also:
-