Package org.elasticsearch.client
Class XPackClient
java.lang.Object
org.elasticsearch.client.XPackClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for
accessing the Elastic Licensed X-Pack APIs that are shipped with the
default distribution of Elasticsearch. All of these APIs will 404 if run
against the OSS distribution of Elasticsearch.
See the REST APIs on elastic.co for more information.
-
Method Summary
Modifier and TypeMethodDescriptioninfo
(XPackInfoRequest request, RequestOptions options) Deprecated.Fetch information about X-Pack from the cluster.infoAsync
(XPackInfoRequest request, RequestOptions options, ActionListener<XPackInfoResponse> listener) Deprecated.Asynchronously fetch information about X-Pack from the cluster.usage
(XPackUsageRequest request, RequestOptions options) Deprecated.Fetch usage information about X-Pack features from the cluster.usageAsync
(XPackUsageRequest request, RequestOptions options, ActionListener<XPackUsageResponse> listener) Deprecated.Asynchronously fetch usage information about X-Pack features from the cluster.
-
Method Details
-
info
Deprecated.Fetch information about X-Pack from the cluster. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
infoAsync
public Cancellable infoAsync(XPackInfoRequest request, RequestOptions options, ActionListener<XPackInfoResponse> listener) Deprecated.Asynchronously fetch information about X-Pack from the cluster. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
usage
public XPackUsageResponse usage(XPackUsageRequest request, RequestOptions options) throws IOException Deprecated.Fetch usage information about X-Pack features from the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
usageAsync
public Cancellable usageAsync(XPackUsageRequest request, RequestOptions options, ActionListener<XPackUsageResponse> listener) Deprecated.Asynchronously fetch usage information about X-Pack features from the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-