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
Constructors Constructor Description ElasticsearchFleetClient(ElasticsearchTransport transport)
ElasticsearchFleetClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description <TDocument>
FleetSearchResponse<TDocument>search(FleetSearchRequest request, java.lang.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(java.util.function.Function<FleetSearchRequest.Builder,ObjectBuilder<FleetSearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)
Search API where the search will only be executed after specified checkpoints are available due to a refresh.ElasticsearchFleetClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, java.lang.Class<TDocument> tDocumentClass) throws java.io.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.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
search
public final <TDocument> FleetSearchResponse<TDocument> search(java.util.function.Function<FleetSearchRequest.Builder,ObjectBuilder<FleetSearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.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:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-