Class ElasticsearchXpackClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchXpackClient>
co.elastic.clients.elasticsearch.xpack.ElasticsearchXpackClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchXpackClient
extends ApiClient<ElasticsearchTransport,ElasticsearchXpackClient>
Client for the xpack namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchXpackClient
(ElasticsearchTransport transport) ElasticsearchXpackClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioninfo()
Provides general information about the installed X-Pack features.info
(XpackInfoRequest request) Provides general information about the installed X-Pack features.final XpackInfoResponse
Provides general information about the installed X-Pack features.usage()
This API provides information about which features are currently enabled and available under the current license and some usage statistics.usage
(XpackUsageRequest request) This API provides information about which features are currently enabled and available under the current license and some usage statistics.final XpackUsageResponse
This API provides information about which features are currently enabled and available under the current license and some usage statistics.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
-
ElasticsearchXpackClient
-
ElasticsearchXpackClient
public ElasticsearchXpackClient(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,
ElasticsearchXpackClient>
-
info
Provides general information about the installed X-Pack features.- Throws:
IOException
ElasticsearchException
- See Also:
-
info
public final XpackInfoResponse info(Function<XpackInfoRequest.Builder, ObjectBuilder<XpackInfoRequest>> fn) throws IOException, ElasticsearchExceptionProvides general information about the installed X-Pack features.- Parameters:
fn
- a function that initializes a builder to create theXpackInfoRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
info
Provides general information about the installed X-Pack features.- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
public XpackUsageResponse usage(XpackUsageRequest request) throws IOException, ElasticsearchException This API provides information about which features are currently enabled and available under the current license and some usage statistics.- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
public final XpackUsageResponse usage(Function<XpackUsageRequest.Builder, ObjectBuilder<XpackUsageRequest>> fn) throws IOException, ElasticsearchExceptionThis API provides information about which features are currently enabled and available under the current license and some usage statistics.- Parameters:
fn
- a function that initializes a builder to create theXpackUsageRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
usage
This API provides information about which features are currently enabled and available under the current license and some usage statistics.- Throws:
IOException
ElasticsearchException
- See Also:
-