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 SummaryFields inherited from class co.elastic.clients.ApiClienttransport, transportOptions
- 
Constructor SummaryConstructorsConstructorDescriptionElasticsearchXpackClient(ElasticsearchTransport transport) ElasticsearchXpackClient(ElasticsearchTransport transport, TransportOptions transportOptions) 
- 
Method SummaryModifier and TypeMethodDescriptioninfo()Get information.info(XpackInfoRequest request) Get information.final XpackInfoResponseGet information.usage()Get usage information.usage(XpackUsageRequest request) Get usage information.final XpackUsageResponseGet usage information.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
- 
ElasticsearchXpackClientpublic ElasticsearchXpackClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) 
 
- 
- 
Method Details- 
withTransportOptionsDescription copied from class:ApiClientCreates a new client with some request options- Specified by:
- withTransportOptionsin class- ApiClient<ElasticsearchTransport,- ElasticsearchXpackClient> 
 
- 
infoGet information. The information provided by the API includes:- Build information including the build number and timestamp.
- License information about the currently installed license.
- Feature information for the features that are currently enabled and available under the current license.
 - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
infopublic final XpackInfoResponse info(Function<XpackInfoRequest.Builder, ObjectBuilder<XpackInfoRequest>> fn) throws IOException, ElasticsearchExceptionGet information. The information provided by the API includes:- Build information including the build number and timestamp.
- License information about the currently installed license.
- Feature information for the features that are currently enabled and available under the current license.
 - Parameters:
- fn- a function that initializes a builder to create the- XpackInfoRequest
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
infoGet information. The information provided by the API includes:- Build information including the build number and timestamp.
- License information about the currently installed license.
- Feature information for the features that are currently enabled and available under the current license.
 - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
usagepublic XpackUsageResponse usage(XpackUsageRequest request) throws IOException, ElasticsearchException Get usage information. Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
usagepublic final XpackUsageResponse usage(Function<XpackUsageRequest.Builder, ObjectBuilder<XpackUsageRequest>> fn) throws IOException, ElasticsearchExceptionGet usage information. Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.- Parameters:
- fn- a function that initializes a builder to create the- XpackUsageRequest
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
usageGet usage information. Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
 
-